
/* A Bison parser, made by GNU Bison 2.4.1.  */

/* Skeleton implementation for Bison GLR parsers in C
   
      Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
   
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.
   
   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

/* C GLR parser skeleton written by Paul Hilfinger.  */

/* Identify Bison output.  */
#define YYBISON 1

/* Bison version.  */
#define YYBISON_VERSION "2.4.1"

/* Skeleton name.  */
#define YYSKELETON_NAME "glr.c"

/* Pure parsers.  */
#define YYPURE 0

/* Using locations.  */
#define YYLSP_NEEDED 1




/* Copy the first part of user declarations.  */

/* Line 172 of glr.c  */
#line 2 "sql.y"

#define YYMAXDEPTH  1000000

#include "config.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <errno.h>
#include "sql_tree.h"

#ifdef WINDOWS
#define inline
#endif

int  yylex();
void yyerror(const char* err);
#define DBG_PRINT

#define DOLLAR_SIGN_TEXT  "$"
#define WON_SIGN_TEXT    "\\"



/* Line 172 of glr.c  */
#line 86 "sql_y.c"



#include "sql_y.h"

/* Enabling traces.  */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif

/* Enabling verbose error messages.  */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 1
#endif

/* Enabling the token table.  */
#ifndef YYTOKEN_TABLE
# define YYTOKEN_TABLE 0
#endif

/* Default (constant) value used for initialization for null
   right-hand sides.  Unlike the standard yacc.c template,
   here we set the default value of $$ to a zeroed-out value.
   Since the default value is undefined, this behavior is
   technically correct.  */
static YYSTYPE yyval_default;

/* Copy the second part of user declarations.  */


/* Line 243 of glr.c  */
#line 121 "sql_y.c"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#ifndef YY_
# if YYENABLE_NLS
#  if ENABLE_NLS
#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
#   define YY_(msgid) dgettext ("bison-runtime", msgid)
#  endif
# endif
# ifndef YY_
#  define YY_(msgid) msgid
# endif
#endif

/* Suppress unused-variable warnings by "using" E.  */
#if ! defined lint || defined __GNUC__
# define YYUSE(e) ((void) (e))
#else
# define YYUSE(e) /* empty */
#endif

/* Identity function, used to suppress warnings about constant conditions.  */
#ifndef lint
# define YYID(n) (n)
#else
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static int
YYID (int i)
#else
static int
YYID (i)
    int i;
#endif
{
  return i;
}
#endif

#ifndef YYFREE
# define YYFREE free
#endif
#ifndef YYMALLOC
# define YYMALLOC malloc
#endif
#ifndef YYREALLOC
# define YYREALLOC realloc
#endif

#define YYSIZEMAX ((size_t) -1)

#ifdef __cplusplus
   typedef bool yybool;
#else
   typedef unsigned char yybool;
#endif
#define yytrue 1
#define yyfalse 0

#ifndef YYSETJMP
# include <setjmp.h>
# define YYJMP_BUF jmp_buf
# define YYSETJMP(env) setjmp (env)
# define YYLONGJMP(env, val) longjmp (env, val)
#endif

/*-----------------.
| GCC extensions.  |
`-----------------*/

#ifndef __attribute__
/* This feature is available in gcc versions 2.5 and later.  */
# if (! defined __GNUC__ || __GNUC__ < 2 \
      || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__)
#  define __attribute__(Spec) /* empty */
# endif
#endif

#define YYOPTIONAL_LOC(Name) Name

#ifndef YYASSERT
# define YYASSERT(condition) ((void) ((condition) || (abort (), 0)))
#endif

/* YYFINAL -- State number of the termination state.  */
#define YYFINAL  72
/* YYLAST -- Last index in YYTABLE.  */
#define YYLAST   1106

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  181
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  132
/* YYNRULES -- Number of rules.  */
#define YYNRULES  419
/* YYNRULES -- Number of states.  */
#define YYNSTATES  800
/* YYMAXRHS -- Maximum number of symbols on right-hand side of rule.  */
#define YYMAXRHS 11
/* YYMAXLEFT -- Maximum number of symbols to the left of a handle
   accessed by $0, $-1, etc., in any rule.  */
#define YYMAXLEFT 0

/* YYTRANSLATE(X) -- Bison symbol number corresponding to X.  */
#define YYUNDEFTOK  2
#define YYMAXUTOK   421

#define YYTRANSLATE(YYX)						\
  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
static const unsigned char yytranslate[] =
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     167,   168,   173,   172,   169,   176,   170,   178,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,   175,     2,
     180,   171,   179,   174,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,   177,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
      25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
      35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
      45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
      55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
      65,    66,    67,    68,    69,    70,    71,    72,    73,    74,
      75,    76,    77,    78,    79,    80,    81,    82,    83,    84,
      85,    86,    87,    88,    89,    90,    91,    92,    93,    94,
      95,    96,    97,    98,    99,   100,   101,   102,   103,   104,
     105,   106,   107,   108,   109,   110,   111,   112,   113,   114,
     115,   116,   117,   118,   119,   120,   121,   122,   123,   124,
     125,   126,   127,   128,   129,   130,   131,   132,   133,   134,
     135,   136,   137,   138,   139,   140,   141,   142,   143,   144,
     145,   146,   147,   148,   149,   150,   151,   152,   153,   154,
     155,   156,   157,   158,   159,   160,   161,   162,   163,   164,
     165,   166
};

#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
static const unsigned short int yyprhs[] =
{
       0,     0,     3,     5,     6,     9,    11,    13,    15,    17,
      19,    21,    23,    25,    27,    29,    31,    33,    41,    48,
      57,    64,    70,    76,    84,    93,    99,   105,   109,   117,
     126,   132,   136,   137,   139,   140,   142,   146,   150,   152,
     154,   157,   160,   164,   166,   170,   173,   175,   179,   185,
     186,   189,   192,   195,   196,   198,   200,   204,   206,   213,
     217,   218,   220,   224,   226,   230,   232,   233,   235,   237,
     241,   245,   249,   253,   256,   262,   263,   265,   267,   268,
     270,   272,   278,   282,   290,   297,   307,   308,   311,   315,
     317,   319,   324,   328,   331,   333,   334,   337,   340,   344,
     346,   348,   350,   359,   360,   363,   368,   369,   372,   374,
     378,   380,   384,   390,   394,   396,   404,   405,   407,   415,
     423,   430,   437,   438,   442,   446,   448,   450,   452,   454,
     456,   461,   463,   465,   467,   469,   471,   473,   476,   478,
     479,   482,   483,   486,   487,   490,   491,   495,   496,   499,
     500,   505,   510,   514,   518,   520,   521,   524,   530,   535,
     545,   550,   551,   553,   557,   559,   560,   564,   565,   567,
     571,   576,   580,   585,   589,   592,   594,   597,   599,   602,
     605,   609,   611,   613,   615,   619,   621,   625,   629,   632,
     635,   637,   641,   646,   650,   655,   662,   671,   673,   676,
     678,   681,   685,   686,   688,   691,   695,   697,   700,   703,
     706,   709,   711,   715,   727,   728,   731,   734,   735,   738,
     740,   741,   743,   745,   747,   749,   751,   756,   759,   763,
     765,   769,   771,   773,   775,   778,   780,   782,   784,   785,
     788,   789,   793,   794,   797,   798,   802,   806,   812,   813,
     817,   823,   827,   829,   832,   835,   837,   841,   845,   849,
     853,   855,   859,   863,   865,   868,   871,   874,   876,   878,
     880,   887,   889,   891,   893,   897,   902,   906,   910,   912,
     917,   923,   928,   934,   939,   946,   955,   962,   970,   977,
     984,   989,   996,   998,  1000,  1002,  1004,  1006,  1011,  1016,
    1021,  1026,  1035,  1037,  1039,  1041,  1043,  1045,  1047,  1049,
    1051,  1053,  1055,  1062,  1067,  1073,  1078,  1079,  1082,  1088,
    1093,  1099,  1104,  1108,  1110,  1114,  1116,  1119,  1121,  1124,
    1126,  1130,  1136,  1140,  1143,  1149,  1153,  1156,  1159,  1162,
    1165,  1168,  1171,  1174,  1177,  1180,  1181,  1183,  1185,  1187,
    1190,  1192,  1196,  1199,  1202,  1204,  1206,  1209,  1213,  1217,
    1219,  1224,  1229,  1232,  1233,  1235,  1237,  1239,  1242,  1244,
    1246,  1248,  1250,  1252,  1256,  1259,  1264,  1268,  1272,  1275,
    1278,  1279,  1283,  1284,  1288,  1294,  1296,  1298,  1300,  1302,
    1304,  1306,  1308,  1310,  1311,  1313,  1317,  1319,  1321,  1323,
    1325,  1327,  1329,  1331,  1333,  1336,  1338,  1340,  1343,  1345,
    1347,  1350,  1353,  1356,  1359,  1362,  1365,  1368,  1371,  1374
};

/* YYRHS -- A `-1'-separated list of the rules' RHS.  */
static const short int yyrhs[] =
{
     182,     0,    -1,   183,    -1,    -1,   183,   184,    -1,   184,
      -1,   185,    -1,   186,    -1,   187,    -1,   188,    -1,   252,
      -1,   254,    -1,   209,    -1,   217,    -1,   223,    -1,   225,
      -1,   251,    -1,    33,   260,   121,   203,   167,   247,   168,
      -1,    33,   139,   203,   232,   233,   234,    -1,    33,   260,
     189,    69,   304,    98,   203,   191,    -1,    33,   134,   306,
     229,   230,   231,    -1,     6,   260,   204,   203,   205,    -1,
       6,   134,   306,   155,   308,    -1,     6,   260,   189,    69,
      98,   203,   191,    -1,     6,   260,   189,    69,   306,    98,
     203,   190,    -1,     6,   260,   189,    69,   306,    -1,   110,
     204,   203,     9,   203,    -1,    50,   204,   202,    -1,    50,
     260,   189,    69,    98,   203,   191,    -1,    50,   260,   189,
      69,   306,    98,   203,   190,    -1,    50,   260,   189,    69,
     306,    -1,    50,   134,   306,    -1,    -1,   131,    -1,    -1,
     191,    -1,   167,   192,   168,    -1,   192,   169,   193,    -1,
     193,    -1,   306,    -1,   306,    10,    -1,   306,    46,    -1,
     194,   169,   200,    -1,   200,    -1,   195,   169,   200,    -1,
     195,   196,    -1,   200,    -1,    34,    77,   200,    -1,   197,
      77,   200,    98,   288,    -1,    -1,    71,   198,    -1,    80,
     198,    -1,   113,   198,    -1,    -1,   103,    -1,   203,    -1,
     167,   254,   168,    -1,   199,    -1,   199,   201,   306,   167,
     305,   168,    -1,   199,   201,   306,    -1,    -1,     9,    -1,
     202,   169,   203,    -1,   203,    -1,   306,   170,   306,    -1,
     306,    -1,    -1,   139,    -1,   121,    -1,     4,   207,   247,
      -1,    50,   206,   305,    -1,    50,    31,   306,    -1,    23,
     207,   247,    -1,    23,   208,    -1,   110,   206,   306,     9,
     306,    -1,    -1,    13,    -1,    28,    -1,    -1,    28,    -1,
      13,    -1,   208,   169,   306,    42,   275,    -1,   306,    42,
     275,    -1,    72,   260,    75,   203,   211,   212,   214,    -1,
      72,   260,    75,   203,   211,   213,    -1,   167,    72,   260,
      75,   203,   211,   213,   214,   168,    -1,    -1,   167,   168,
      -1,   167,   305,   168,    -1,   213,    -1,   254,    -1,   136,
     167,   215,   168,    -1,   136,   167,   168,    -1,    42,   136,
      -1,    42,    -1,    -1,    75,   266,    -1,   125,   266,    -1,
     215,   169,   216,    -1,   216,    -1,   258,    -1,   275,    -1,
     132,   260,   203,   219,   116,   220,   218,   271,    -1,    -1,
     141,   288,    -1,   141,    35,    97,   306,    -1,    -1,     9,
     306,    -1,   306,    -1,   220,   169,   221,    -1,   221,    -1,
     298,   171,   275,    -1,   167,   222,   168,   171,   278,    -1,
     222,   169,   298,    -1,   298,    -1,    45,   260,   224,    63,
     194,   218,   271,    -1,    -1,   203,    -1,    64,   227,    98,
     202,   125,   305,   226,    -1,    64,   227,   125,   305,    98,
     202,   226,    -1,   112,   227,    98,   202,    63,   305,    -1,
     112,   227,    63,   305,    98,   202,    -1,    -1,   142,    64,
     100,    -1,   227,   169,   228,    -1,   228,    -1,   115,    -1,
      72,    -1,    69,    -1,    45,    -1,   132,   167,   305,   168,
      -1,   132,    -1,     6,    -1,     4,    -1,    50,    -1,    55,
      -1,   109,    -1,     5,   108,    -1,     5,    -1,    -1,   155,
     308,    -1,    -1,   153,   305,    -1,    -1,   154,   305,    -1,
      -1,   167,   245,   168,    -1,    -1,     9,   235,    -1,    -1,
     142,    83,    26,   100,    -1,   142,    20,    26,   100,    -1,
     142,    26,   100,    -1,   235,   169,   254,    -1,   254,    -1,
      -1,    31,   306,    -1,   106,    78,   167,   305,   168,    -1,
     131,   167,   305,   168,    -1,    62,    78,   167,   305,   168,
     109,   203,   240,   241,    -1,    26,   167,   288,   168,    -1,
      -1,   239,    -1,   239,   169,   244,    -1,   244,    -1,    -1,
     167,   305,   168,    -1,    -1,   243,    -1,    98,    45,    19,
      -1,    98,    45,    90,     3,    -1,    98,    45,   111,    -1,
      98,   132,    90,     3,    -1,    98,   132,   111,    -1,   243,
     242,    -1,   242,    -1,    91,    43,    -1,    43,    -1,    70,
      44,    -1,    70,    67,    -1,   245,   169,   246,    -1,   246,
      -1,   248,    -1,   306,    -1,   247,   169,   248,    -1,   248,
      -1,   236,   237,   238,    -1,   306,   300,   249,    -1,   306,
     300,    -1,   249,   250,    -1,   250,    -1,   236,   131,   238,
      -1,   236,   106,    78,   238,    -1,   236,    93,   238,    -1,
     236,    91,    93,   238,    -1,   236,    26,   167,   288,   168,
     238,    -1,   236,    62,    78,   109,   203,   240,   241,   238,
      -1,    29,    -1,    29,   143,    -1,   114,    -1,   114,   143,
      -1,    58,   275,   214,    -1,    -1,   172,    -1,   255,   272,
      -1,   255,   256,   257,    -1,   257,    -1,   130,   261,    -1,
      47,   261,    -1,    54,   261,    -1,    74,   261,    -1,   258,
      -1,   167,   254,   168,    -1,   115,   260,   261,   262,   259,
      63,   195,   268,   269,   270,   271,    -1,    -1,    75,   265,
      -1,   125,   265,    -1,    -1,   260,   166,    -1,   166,    -1,
      -1,     5,    -1,    48,    -1,   131,    -1,   173,    -1,   263,
      -1,   263,   169,   275,   219,    -1,   275,   219,    -1,   264,
     169,   275,    -1,   275,    -1,   265,   169,   266,    -1,   266,
      -1,   174,    -1,   160,    -1,   175,   306,    -1,   306,    -1,
     174,    -1,   160,    -1,    -1,   141,   288,    -1,    -1,    65,
      18,   264,    -1,    -1,    66,   288,    -1,    -1,   135,    69,
     202,    -1,   135,    69,    92,    -1,   135,    69,     5,    54,
     202,    -1,    -1,   102,    18,   273,    -1,   102,    18,   273,
      61,   288,    -1,   273,   169,   274,    -1,   274,    -1,   275,
      10,    -1,   275,    46,    -1,   275,    -1,   275,   172,   276,
      -1,   275,   176,   276,    -1,   275,   147,   276,    -1,   275,
     177,   276,    -1,   276,    -1,   276,   173,   277,    -1,   276,
     178,   277,    -1,   277,    -1,   253,   278,    -1,   176,   278,
      -1,   107,   278,    -1,    81,    -1,   280,    -1,   284,    -1,
      57,   167,   157,    63,   275,   168,    -1,   303,    -1,   210,
      -1,   298,    -1,   167,   264,   168,    -1,   167,   279,   272,
     168,    -1,   167,   254,   168,    -1,   279,   256,   257,    -1,
     288,    -1,    32,   167,   173,   168,    -1,    32,   167,   282,
     275,   168,    -1,    32,   167,   275,   168,    -1,   281,   167,
     282,   298,   168,    -1,   281,   167,   275,   168,    -1,   104,
     167,   275,    68,   275,   168,    -1,   119,   167,   275,    63,
     275,    61,   275,   168,    -1,   119,   167,   275,    63,   275,
     168,    -1,   128,   167,   283,   275,    63,   275,   168,    -1,
     128,   167,   283,    63,   275,   168,    -1,   128,   167,   275,
      63,   275,   168,    -1,   128,   167,   275,   168,    -1,    22,
     167,   275,     9,   300,   168,    -1,    36,    -1,    37,    -1,
      38,    -1,    35,    -1,   134,    -1,    96,   167,   275,   168,
      -1,    16,   167,   275,   168,    -1,    84,   167,   275,   168,
      -1,   133,   167,   275,   168,    -1,   127,   167,   275,   169,
     275,   169,   275,   168,    -1,    12,    -1,    85,    -1,    86,
      -1,   120,    -1,   156,    -1,    48,    -1,   131,    -1,    79,
      -1,   126,    -1,    17,    -1,    94,   167,   275,   169,   275,
     168,    -1,    27,   167,   264,   168,    -1,    21,   275,   286,
     285,    52,    -1,    21,   287,   285,    52,    -1,    -1,    51,
     275,    -1,   286,   140,   275,   122,   275,    -1,   140,   275,
     122,   275,    -1,   287,   140,   288,   122,   275,    -1,   140,
     288,   122,   275,    -1,   288,   101,   289,    -1,   289,    -1,
     289,     7,   290,    -1,   290,    -1,    91,   291,    -1,   291,
      -1,    56,   275,    -1,   275,    -1,   275,   292,   275,    -1,
     275,   294,   275,    53,   307,    -1,   275,   294,   275,    -1,
     275,   295,    -1,   275,   296,   275,     7,   275,    -1,   275,
     297,   275,    -1,   275,   157,    -1,   171,   293,    -1,   148,
     293,    -1,   179,   293,    -1,   149,   293,    -1,   180,   293,
      -1,   150,   293,    -1,   151,   293,    -1,   152,   293,    -1,
      -1,     5,    -1,   118,    -1,     8,    -1,    91,    82,    -1,
      82,    -1,    76,    91,    93,    -1,    76,    93,    -1,    91,
      14,    -1,    14,    -1,    68,    -1,    91,    68,    -1,   306,
     170,   173,    -1,   306,   170,   306,    -1,   306,    -1,   175,
     306,   170,   173,    -1,   175,   306,   170,   306,    -1,   175,
     306,    -1,    -1,   138,    -1,    73,    -1,   117,    -1,    49,
     105,    -1,    49,    -1,    40,    -1,   123,    -1,   124,    -1,
      41,    -1,    24,   299,   301,    -1,   137,   301,    -1,    87,
      24,   299,   301,    -1,    89,   299,   301,    -1,    15,   299,
     301,    -1,    95,   302,    -1,    60,   301,    -1,    -1,   167,
     159,   168,    -1,    -1,   167,   159,   168,    -1,   167,   159,
     169,   159,   168,    -1,   159,    -1,   161,    -1,   310,    -1,
     308,    -1,   309,    -1,   267,    -1,    93,    -1,   312,    -1,
      -1,   306,    -1,   305,   169,   306,    -1,   306,    -1,   157,
      -1,   158,    -1,   154,    -1,   155,    -1,   156,    -1,   308,
      -1,   267,    -1,   308,   162,    -1,   162,    -1,   163,    -1,
     309,   162,    -1,   164,    -1,   165,    -1,   144,   311,    -1,
     145,   311,    -1,   253,   159,    -1,   176,   159,    -1,   253,
     161,    -1,   176,   161,    -1,    40,   308,    -1,   123,   308,
      -1,   124,   308,    -1,    41,   308,    -1
};

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const unsigned short int yyrline[] =
{
       0,   413,   413,   418,   424,   429,   438,   440,   442,   444,
     446,   448,   450,   452,   454,   456,   458,   463,   479,   487,
     495,   506,   510,   519,   528,   537,   548,   558,   567,   574,
     582,   590,   601,   606,   616,   621,   630,   639,   645,   654,
     662,   672,   684,   691,   700,   707,   713,   722,   726,   733,
     738,   744,   750,   758,   760,   764,   775,   782,   796,   810,
     826,   828,   832,   838,   847,   857,   870,   875,   881,   890,
     895,   900,   905,   910,   915,   923,   928,   934,   942,   944,
     945,   949,   956,   965,   971,   975,   982,   987,   993,  1003,
    1009,  1016,  1020,  1024,  1028,  1035,  1040,  1046,  1055,  1061,
    1070,  1076,  1085,  1113,  1117,  1122,  1130,  1135,  1141,  1150,
    1156,  1165,  1168,  1174,  1180,  1189,  1202,  1207,  1216,  1220,
    1224,  1228,  1235,  1240,  1249,  1255,  1264,  1268,  1272,  1276,
    1280,  1284,  1288,  1292,  1296,  1300,  1304,  1308,  1312,  1319,
    1324,  1334,  1339,  1349,  1354,  1364,  1369,  1379,  1384,  1394,
    1399,  1405,  1411,  1420,  1426,  1436,  1441,  1450,  1457,  1464,
    1471,  1481,  1485,  1492,  1499,  1509,  1514,  1524,  1527,  1535,
    1540,  1545,  1550,  1555,  1561,  1566,  1574,  1578,  1582,  1586,
    1593,  1599,  1608,  1614,  1621,  1627,  1636,  1646,  1659,  1672,
    1677,  1684,  1688,  1692,  1696,  1700,  1704,  1717,  1721,  1725,
    1729,  1735,  1740,  1742,  1746,  1760,  1765,  1774,  1779,  1783,
    1787,  1793,  1799,  1809,  1842,  1847,  1853,  1863,  1867,  1872,
    1880,  1885,  1891,  1897,  1906,  1918,  1925,  1933,  1944,  1950,
    1959,  1965,  1974,  1984,  1995,  2005,  2018,  2022,  2030,  2035,
    2043,  2048,  2056,  2062,  2072,  2077,  2084,  2089,  2097,  2100,
    2106,  2115,  2121,  2130,  2135,  2141,  2149,  2155,  2161,  2167,
    2173,  2182,  2188,  2194,  2203,  2209,  2215,  2222,  2227,  2232,
    2237,  2246,  2251,  2256,  2261,  2266,  2271,  2278,  2282,  2291,
    2295,  2299,  2303,  2308,  2312,  2319,  2325,  2331,  2338,  2346,
    2353,  2360,  2364,  2368,  2372,  2376,  2380,  2384,  2391,  2398,
    2405,  2412,  2421,  2427,  2433,  2439,  2445,  2454,  2458,  2465,
    2471,  2477,  2486,  2491,  2495,  2499,  2506,  2511,  2520,  2526,
    2535,  2541,  2550,  2556,  2565,  2571,  2580,  2586,  2595,  2601,
    2607,  2612,  2617,  2623,  2629,  2633,  2638,  2646,  2666,  2686,
    2706,  2726,  2746,  2766,  2769,  2776,  2781,  2787,  2793,  2802,
    2808,  2817,  2823,  2833,  2839,  2848,  2854,  2863,  2875,  2887,
    2899,  2911,  2923,  2939,  2944,  2953,  2958,  2963,  2968,  2973,
    2978,  2983,  2988,  2993,  2998,  3003,  3008,  3013,  3018,  3023,
    3031,  3036,  3052,  3055,  3064,  3076,  3099,  3115,  3131,  3147,
    3163,  3176,  3190,  3200,  3205,  3214,  3222,  3233,  3238,  3243,
    3248,  3253,  3260,  3276,  3293,  3297,  3301,  3309,  3313,  3317,
    3325,  3329,  3336,  3342,  3349,  3355,  3364,  3378,  3391,  3404
};
#endif

#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
static const char *const yytname[] =
{
  "$end", "error", "$undefined", "SQL_ACTION", "SQL_ADD", "SQL_ALL",
  "SQL_ALTER", "SQL_AND", "SQL_ANY", "SQL_AS", "SQL_ASC", "SQL_AT",
  "SQL_AVG", "SQL_ATTRIBUTE", "SQL_BETWEEN", "SQL_BIT", "SQL_BIT_LENGTH",
  "SQL_BOTH", "SQL_BY", "SQL_CASCADE", "SQL_CASCADED", "SQL_CASE",
  "SQL_CAST", "SQL_CHANGE", "SQL_CHAR", "SQL_CHARACTER_LENGTH",
  "SQL_CHECK", "SQL_COALESCE", "SQL_COLUMN", "SQL_COMMIT", "SQL_CONNECT",
  "SQL_CONSTRAINT", "SQL_COUNT", "SQL_CREATE", "SQL_CROSS", "SQL_CURRENT",
  "SQL_CURRENT_DATE", "SQL_CURRENT_TIME", "SQL_CURRENT_TIMESTAMP",
  "SQL_CURRENT_USER", "SQL_DATE", "SQL_DATETIME", "SQL_DEFAULT",
  "SQL_DEFERRABLE", "SQL_DEFERRED", "SQL_DELETE", "SQL_DESC",
  "SQL_DIFFERENCE", "SQL_DISTINCT", "SQL_DOUBLE", "SQL_DROP", "SQL_ELSE",
  "SQL_END", "SQL_ESCAPE", "SQL_EXCEPT", "SQL_EXECUTE", "SQL_EXISTS",
  "SQL_EXTRACT", "SQL_EVALUATE", "SQL_FALSE", "SQL_FLOAT", "SQL_FOR",
  "SQL_FOREIGN", "SQL_FROM", "SQL_GRANT", "SQL_GROUP", "SQL_HAVING",
  "SQL_IMMEDIATE", "SQL_IN", "SQL_INDEX", "SQL_INITIALLY", "SQL_INNER",
  "SQL_INSERT", "SQL_INTEGER", "SQL_INTERSECT", "SQL_INTO", "SQL_IS",
  "SQL_JOIN", "SQL_KEY", "SQL_LEADING", "SQL_LEFT", "SQL_LEVEL",
  "SQL_LIKE", "SQL_LOCAL", "SQL_LOWER", "SQL_MAX", "SQL_MIN",
  "SQL_NATIONAL", "SQL_NATURAL", "SQL_NCHAR", "SQL_NO", "SQL_NOT",
  "SQL_NONE", "SQL_NULL", "SQL_NULLIF", "SQL_NUMERIC", "SQL_OCTET_LENGTH",
  "SQL_OF", "SQL_ON", "SQL_ONLY", "SQL_OPTION", "SQL_OR", "SQL_ORDER",
  "SQL_OUTER", "SQL_POSITION", "SQL_PRECISION", "SQL_PRIMARY", "SQL_PRIOR",
  "SQL_PRIVILEGES", "SQL_REFERENCES", "SQL_RENAME", "SQL_RESTRICT",
  "SQL_REVOKE", "SQL_RIGHT", "SQL_ROLLBACK", "SQL_SELECT", "SQL_SET",
  "SQL_SMALLINT", "SQL_SOME", "SQL_SUBSTRING", "SQL_SUM", "SQL_TABLE",
  "SQL_THEN", "SQL_TIME", "SQL_TIMESTAMP", "SQL_TO", "SQL_TRAILING",
  "SQL_TRANSLATE", "SQL_TRIM", "SQL_TRUE", "SQL_UNION", "SQL_UNIQUE",
  "SQL_UPDATE", "SQL_UPPER", "SQL_USER", "SQL_USING", "SQL_VALUES",
  "SQL_VARCHAR", "SQL_VARYING", "SQL_VIEW", "SQL_WHEN", "SQL_WHERE",
  "SQL_WITH", "SQL_WORK", "SQL_DOLLAR_SIGN", "SQL_WON_SIGN",
  "SQL_RIGHT_ARROW", "SQL_STRCAT", "SQL_COMP_NOT_EQ", "SQL_COMP_GE",
  "SQL_COMP_LE", "SQL_EQUAL_SIGN", "SQL_NOT_EQUAL_SIGN", "SQL_GROUPS",
  "SQL_MEMBERS", "SQL_PASSWORD", "SQL_STDDEV", "SQL_ID_NAME",
  "SQL_BracketDelimitedIdName", "SQL_UNSIGNED_INTEGER", "SQL_PARAM_HEADER",
  "SQL_UNSIGNED_REAL", "SQL_CHAR_STRING", "SQL_NCHAR_STRING",
  "SQL_BIT_STRING", "SQL_HEX_STRING", "SQL_HINT", "'('", "')'", "','",
  "'.'", "'='", "'+'", "'*'", "'?'", "':'", "'-'", "'|'", "'/'", "'>'",
  "'<'", "$accept", "stmt_done", "stmt_list", "stmt", "create_stmt",
  "alter_stmt", "rename_stmt", "drop_stmt", "opt_unique",
  "opt_index_column_name_list", "index_column_name_list",
  "index_column_name_list_sub", "index_column_name", "table_spec_list",
  "extended_table_spec_list", "join_table_spec", "opt_of_inner_left_right",
  "opt_outer", "ext_table_spec", "table_spec", "opt_as", "table_name_list",
  "table_name", "opt_table_type", "alter_clause",
  "opt_of_attr_column_method", "opt_of_column_attribute",
  "alter_attr_default_value_list", "insert_stmt", "insert_expression",
  "opt_attr_list", "insert_stmt_value_clause",
  "insert_expression_value_clause", "into_clause_opt", "insert_value_list",
  "insert_value", "update_stmt", "opt_where_delete_update",
  "opt_as_identifier", "update_assignment_list", "update_assignment",
  "path_expression_list", "delete_stmt", "opt_table_name", "auth_stmt",
  "opt_with_grant_option", "author_cmd_list", "authorized_cmd",
  "opt_password", "opt_groups", "opt_members", "opt_view_attr_def_list",
  "opt_as_query_list", "opt_with_levels_clause", "query_list",
  "opt_constraint_id", "of_unique_foreign_check",
  "opt_constraint_attr_list", "constraint_attr_list",
  "opt_paren_attr_list", "opt_ref_rule_list", "ref_rule_value",
  "ref_rule_list", "constraint_attr", "view_attr_def_list",
  "view_attr_def", "field_attr_def_list", "field_attr_def",
  "constraint_list", "column_constraint_def", "transaction_stmt",
  "evaluate_stmt", "opt_plus", "csql_query", "select_expression",
  "table_op", "select_or_subquery", "select_stmt", "opt_select_param_list",
  "opt_hint", "all_distinct", "select_list",
  "alias_enabled_expression_list", "expression_list", "to_param_list",
  "to_param", "host_param_input", "opt_where_clause", "opt_groupby_clause",
  "opt_having_clause", "opt_using_index_clause", "opt_orderby_clause",
  "sort_spec_list", "sort_spec", "expression_", "term", "factor",
  "primary", "search_condition_expression", "reserved_func",
  "of_avg_max_etc", "of_distinct_unique", "of_leading_trailing_both",
  "case_expr", "opt_else_expr", "simple_when_clause_list",
  "searched_when_clause_list", "search_condition", "boolean_term",
  "boolean_factor", "predicate", "comp_op", "opt_of_all_some_any",
  "like_op", "null_op", "between_op", "in_op", "path_expression",
  "opt_varying", "primitive_type", "opt_prec_1", "opt_prec_2",
  "literal_w_o_param", "opt_id", "id_list", "identifier",
  "escape_string_literal", "char_string_literal", "bit_string_literal",
  "monetary_literal", "of_integer_real_literal", "date_or_time_literal", 0
};
#endif

/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
static const unsigned short int yyr1[] =
{
       0,   181,   182,   182,   183,   183,   184,   184,   184,   184,
     184,   184,   184,   184,   184,   184,   184,   185,   185,   185,
     185,   186,   186,   186,   186,   186,   187,   188,   188,   188,
     188,   188,   189,   189,   190,   190,   191,   192,   192,   193,
     193,   193,   194,   194,   195,   195,   195,   196,   196,   197,
     197,   197,   197,   198,   198,   199,   199,   200,   200,   200,
     201,   201,   202,   202,   203,   203,   204,   204,   204,   205,
     205,   205,   205,   205,   205,   206,   206,   206,   207,   207,
     207,   208,   208,   209,   210,   210,   211,   211,   211,   212,
     212,   213,   213,   213,   213,   214,   214,   214,   215,   215,
     216,   216,   217,   218,   218,   218,   219,   219,   219,   220,
     220,   221,   221,   222,   222,   223,   224,   224,   225,   225,
     225,   225,   226,   226,   227,   227,   228,   228,   228,   228,
     228,   228,   228,   228,   228,   228,   228,   228,   228,   229,
     229,   230,   230,   231,   231,   232,   232,   233,   233,   234,
     234,   234,   234,   235,   235,   236,   236,   237,   237,   237,
     237,   238,   238,   239,   239,   240,   240,   241,   241,   242,
     242,   242,   242,   242,   243,   243,   244,   244,   244,   244,
     245,   245,   246,   246,   247,   247,   248,   248,   248,   249,
     249,   250,   250,   250,   250,   250,   250,   251,   251,   251,
     251,   252,   253,   253,   254,   255,   255,   256,   256,   256,
     256,   257,   257,   258,   259,   259,   259,   260,   260,   260,
     261,   261,   261,   261,   262,   262,   263,   263,   264,   264,
     265,   265,   266,   266,   266,   266,   267,   267,   268,   268,
     269,   269,   270,   270,   271,   271,   271,   271,   272,   272,
     272,   273,   273,   274,   274,   274,   275,   275,   275,   275,
     275,   276,   276,   276,   277,   277,   277,   278,   278,   278,
     278,   278,   278,   278,   278,   278,   278,   279,   279,   280,
     280,   280,   280,   280,   280,   280,   280,   280,   280,   280,
     280,   280,   280,   280,   280,   280,   280,   280,   280,   280,
     280,   280,   281,   281,   281,   281,   281,   282,   282,   283,
     283,   283,   284,   284,   284,   284,   285,   285,   286,   286,
     287,   287,   288,   288,   289,   289,   290,   290,   291,   291,
     291,   291,   291,   291,   291,   291,   291,   292,   292,   292,
     292,   292,   292,   292,   292,   293,   293,   293,   293,   294,
     294,   295,   295,   296,   296,   297,   297,   298,   298,   298,
     298,   298,   298,   299,   299,   300,   300,   300,   300,   300,
     300,   300,   300,   300,   300,   300,   300,   300,   300,   300,
     301,   301,   302,   302,   302,   303,   303,   303,   303,   303,
     303,   303,   303,   304,   304,   305,   305,   306,   306,   306,
     306,   306,   307,   307,   308,   308,   308,   309,   309,   309,
     310,   310,   311,   311,   311,   311,   312,   312,   312,   312
};

/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
static const unsigned char yyr2[] =
{
       0,     2,     1,     0,     2,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     7,     6,     8,
       6,     5,     5,     7,     8,     5,     5,     3,     7,     8,
       5,     3,     0,     1,     0,     1,     3,     3,     1,     1,
       2,     2,     3,     1,     3,     2,     1,     3,     5,     0,
       2,     2,     2,     0,     1,     1,     3,     1,     6,     3,
       0,     1,     3,     1,     3,     1,     0,     1,     1,     3,
       3,     3,     3,     2,     5,     0,     1,     1,     0,     1,
       1,     5,     3,     7,     6,     9,     0,     2,     3,     1,
       1,     4,     3,     2,     1,     0,     2,     2,     3,     1,
       1,     1,     8,     0,     2,     4,     0,     2,     1,     3,
       1,     3,     5,     3,     1,     7,     0,     1,     7,     7,
       6,     6,     0,     3,     3,     1,     1,     1,     1,     1,
       4,     1,     1,     1,     1,     1,     1,     2,     1,     0,
       2,     0,     2,     0,     2,     0,     3,     0,     2,     0,
       4,     4,     3,     3,     1,     0,     2,     5,     4,     9,
       4,     0,     1,     3,     1,     0,     3,     0,     1,     3,
       4,     3,     4,     3,     2,     1,     2,     1,     2,     2,
       3,     1,     1,     1,     3,     1,     3,     3,     2,     2,
       1,     3,     4,     3,     4,     6,     8,     1,     2,     1,
       2,     3,     0,     1,     2,     3,     1,     2,     2,     2,
       2,     1,     3,    11,     0,     2,     2,     0,     2,     1,
       0,     1,     1,     1,     1,     1,     4,     2,     3,     1,
       3,     1,     1,     1,     2,     1,     1,     1,     0,     2,
       0,     3,     0,     2,     0,     3,     3,     5,     0,     3,
       5,     3,     1,     2,     2,     1,     3,     3,     3,     3,
       1,     3,     3,     1,     2,     2,     2,     1,     1,     1,
       6,     1,     1,     1,     3,     4,     3,     3,     1,     4,
       5,     4,     5,     4,     6,     8,     6,     7,     6,     6,
       4,     6,     1,     1,     1,     1,     1,     4,     4,     4,
       4,     8,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     6,     4,     5,     4,     0,     2,     5,     4,
       5,     4,     3,     1,     3,     1,     2,     1,     2,     1,
       3,     5,     3,     2,     5,     3,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     0,     1,     1,     1,     2,
       1,     3,     2,     2,     1,     1,     2,     3,     3,     1,
       4,     4,     2,     0,     1,     1,     1,     2,     1,     1,
       1,     1,     1,     3,     2,     4,     3,     3,     2,     2,
       0,     3,     0,     3,     5,     1,     1,     1,     1,     1,
       1,     1,     1,     0,     1,     3,     1,     1,     1,     1,
       1,     1,     1,     1,     2,     1,     1,     2,     1,     1,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2
};

/* YYDPREC[RULE-NUM] -- Dynamic precedence of rule #RULE-NUM (0 if none).  */
static const unsigned char yydprec[] =
{
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    11,    10,     9,
       0,     7,     6,     5,     4,     2,     1,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0
};

/* YYMERGER[RULE-NUM] -- Index of merging function for rule #RULE-NUM.  */
static const unsigned char yymerger[] =
{
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0
};

/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE
   doesn't specify something else to do.  Zero means the default is an
   error.  */
static const unsigned short int yydefact[] =
{
       3,   217,   197,   217,   217,    66,   202,     0,   217,    66,
       0,   199,   217,   217,     0,     0,     2,     5,     6,     7,
       8,     9,    12,    13,    14,    15,    16,    10,    11,   248,
     206,   211,     0,   219,    66,   198,     0,     0,    32,   116,
      68,     0,    67,     0,    32,     0,   203,     0,     0,    95,
     260,   263,   133,   138,   132,   129,   134,   135,   128,   127,
     136,   126,   131,     0,   125,     0,     0,     0,   200,   220,
       0,     0,     1,     4,   220,   220,   220,     0,   220,     0,
     204,   399,   400,   401,   397,   398,     0,    33,   218,     0,
       0,   139,   145,    65,     0,     0,   117,     0,    31,    27,
      63,     0,   302,     0,   202,     0,     0,     0,   295,   292,
     293,   294,     0,     0,     0,   217,   267,     0,   303,   304,
     391,     0,     0,     0,     0,   305,     0,     0,     0,     0,
       0,   296,   202,   202,   401,   385,   237,   386,   405,   406,
     408,   409,   202,   236,     0,   272,   390,   266,   268,     0,
     269,   273,   271,   359,   388,   389,   387,   392,   265,   264,
       0,     0,   202,   202,   202,   202,   201,   202,   202,   137,
       0,     0,     0,     0,     0,     0,     0,     0,   221,   222,
     223,   202,   106,   212,   208,   209,   210,   202,   207,   205,
       0,     0,     0,     0,   141,   155,   147,     0,     0,   393,
       0,     0,     0,   202,   202,     0,   316,   202,   202,   202,
     416,   419,     0,     0,   202,   202,   202,   202,   202,   417,
     418,   202,   202,   202,     0,     0,   410,   411,   202,   217,
     202,     0,     0,   329,   248,   278,   323,   325,   327,   362,
     202,     0,   404,   407,   233,   232,     0,    96,   235,    97,
     258,   256,   257,   259,   261,   262,     0,   396,     0,     0,
     124,    86,     0,     0,     0,   224,   214,   225,   106,     0,
       0,   108,   249,   252,   255,    22,     0,    25,    78,    78,
      75,    75,    21,   140,     0,   143,     0,     0,     0,   181,
     182,   183,     0,   149,    64,   155,     0,   394,     0,   103,
      57,    43,    55,    62,     0,    30,     0,   329,     0,   202,
     316,   202,   202,     0,     0,     0,   229,   307,   308,     0,
       0,   202,     0,     0,     0,     0,     0,     0,     0,     0,
     311,   309,   310,     0,   202,     0,   413,   415,   412,   414,
     328,     0,   326,   276,   274,   202,   354,   355,     0,   350,
       0,   345,   345,   345,   345,   345,   336,   345,   345,   345,
     202,   202,   333,   202,   202,     0,     0,   202,   202,     0,
       0,     0,   357,   358,   234,   130,     0,     0,     0,     0,
       0,    26,     0,     0,     0,     0,     0,   202,   227,   107,
       0,   202,   202,   253,   254,     0,     0,    80,    79,   155,
     155,    73,     0,    76,    77,     0,     0,     0,   142,     0,
      20,   156,     0,     0,     0,     0,   161,   146,   155,   363,
     363,   369,   372,   368,   380,   365,     0,   363,   382,   366,
     370,   371,   380,   188,   148,   154,     0,    18,     0,   185,
       0,     0,     0,   202,     0,   244,    61,     0,     0,     0,
     298,   202,     0,   202,     0,   317,     0,   315,     0,   313,
     279,   281,     0,   202,    86,   299,   202,   297,   202,   202,
     202,   202,   290,   202,     0,   300,     0,   228,     0,   352,
     353,   356,   349,   346,   348,   347,   338,   340,   342,   343,
     344,   337,   339,   341,   330,   332,     0,   335,   277,   275,
     322,   324,   360,   361,   283,     0,   395,   122,   122,    87,
       0,    94,     0,    95,    89,    90,   121,   120,   215,   231,
     216,     0,   106,     0,   103,   110,     0,   250,   251,     0,
      23,    34,    69,    72,     0,   202,    71,    70,     0,   144,
     202,     0,     0,     0,   177,     0,     0,   186,   162,   164,
     180,   364,   380,   380,   367,     0,   379,   363,   380,     0,
     378,   374,     0,   187,   190,     0,     0,     0,     0,    17,
     155,     0,    56,     0,   104,    42,     0,   115,    59,    28,
      34,   321,   202,     0,   314,   202,     0,   280,     0,     0,
       0,     0,     0,     0,     0,     0,   202,    86,   351,     0,
     202,   282,     0,   118,   119,    88,    93,   202,    83,     0,
     238,    46,   226,     0,   114,     0,   244,   202,     0,    38,
      39,    24,    35,     0,    82,     0,     0,     0,     0,     0,
     178,   179,   176,     0,   377,   373,     0,   380,   376,     0,
       0,     0,     0,   161,     0,   161,   189,   153,     0,   152,
       0,   184,    19,     0,     0,     0,    29,   319,   202,   320,
     291,   270,    84,   312,   284,   202,   286,   202,   289,   288,
       0,     0,   403,   331,   402,   334,     0,    92,     0,    99,
     100,   101,   230,     0,    53,    53,    53,   202,     0,    45,
       0,   240,     0,     0,   109,   102,   111,    36,     0,    40,
      41,   202,    74,   160,     0,     0,   158,   163,   381,   375,
     383,     0,   202,     0,   161,   193,   161,   191,   151,   150,
     105,     0,   246,   245,     0,   318,     0,     0,   287,    95,
     123,    91,   202,     0,    54,    50,    51,    52,   239,    44,
       0,     0,   242,     0,   113,    37,    81,     0,   157,     0,
       0,     0,   194,   192,     0,    58,   285,   301,     0,    98,
      47,     0,   202,   202,   244,   112,     0,   384,   161,   165,
     247,    85,   202,   241,   243,   213,   165,   195,     0,   167,
      48,   167,     0,     0,   161,   175,   168,   159,   166,     0,
       0,   196,   174,   169,     0,   171,     0,   173,   170,   172
};

/* YYPDEFGOTO[NTERM-NUM].  */
static const short int yydefgoto[] =
{
      -1,    15,    16,    17,    18,    19,    20,    21,    89,   621,
     622,   618,   619,   299,   610,   689,   690,   735,   300,   301,
     447,    99,   100,    43,   282,   406,   399,   401,    22,   145,
     380,   513,   514,   166,   678,   679,    23,   445,   270,   524,
     525,   613,    24,    97,    25,   603,    63,    64,   194,   285,
     410,   196,   293,   437,   434,   287,   416,   547,   548,   779,
     784,   785,   786,   549,   288,   289,   438,   439,   563,   564,
      26,    27,    48,    28,    29,    79,    30,    31,   386,    34,
     181,   266,   267,   232,   518,   519,   146,   691,   742,   764,
     577,    80,   272,   273,   307,    50,    51,   147,   234,   148,
     149,   321,   334,   150,   313,   310,   206,   235,   236,   237,
     238,   360,   486,   361,   362,   363,   364,   151,   552,   433,
     556,   560,   152,   296,   256,    93,   673,   154,   155,   156,
     226,   157
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -618
static const short int yypact[] =
{
     574,   165,   -66,   463,   -84,   -11,   236,   704,   -76,   290,
     704,    80,    97,   119,   -49,   230,   574,  -618,  -618,  -618,
    -618,  -618,  -618,  -618,  -618,  -618,  -618,  -618,  -618,   378,
    -618,  -618,   903,  -618,   256,  -618,   903,   903,   -26,   882,
    -618,   903,  -618,   903,   -58,   730,  -618,   730,   730,   410,
    -102,  -618,  -618,   245,  -618,  -618,  -618,  -618,  -618,  -618,
    -618,  -618,   205,   -44,  -618,   -23,   903,   -20,  -618,    39,
     882,   207,  -618,  -618,    52,    52,    52,   376,    52,   -49,
    -618,  -618,  -618,  -618,  -618,  -618,   265,  -618,  -618,   361,
     903,   300,   325,   298,   903,   429,  -618,   471,  -618,   374,
    -618,   490,  -618,   397,   172,   422,   432,   437,  -618,  -618,
    -618,  -618,   174,   174,   443,   446,  -618,   468,  -618,  -618,
    -618,   470,   480,   482,   484,  -618,   174,   174,   499,   501,
     504,  -618,   122,   122,   509,  -618,  -618,  -618,  -618,  -618,
    -618,  -618,   384,  -618,   903,  -618,  -618,  -618,  -618,   518,
    -618,  -618,  -618,   455,   492,   525,  -618,  -618,  -618,  -618,
     834,   834,   236,   236,   236,   236,  -618,   236,   236,  -618,
     903,   903,   903,   704,   903,   621,   903,   903,  -618,  -618,
    -618,   243,   135,  -618,  -618,  -618,  -618,   236,  -618,  -618,
     174,   460,    46,   174,   540,   247,   691,   903,   546,   903,
     877,   903,   523,   236,   204,   520,     2,   236,   236,   -15,
     492,   492,   545,   -12,   236,   236,   236,   236,   236,   492,
     492,   236,    92,   236,    74,   363,  -618,  -618,   236,   541,
     150,   561,   373,   368,   378,   639,   738,  -618,  -618,   578,
     166,   857,  -618,  -618,  -618,  -618,   903,  -618,  -618,  -618,
    -102,  -102,  -102,  -102,  -618,  -618,   385,  -618,   155,   -34,
    -618,   583,   903,   -31,    38,  -618,    -1,   584,    82,   903,
     653,  -618,   -22,  -618,    15,   492,   903,   680,   343,    89,
     557,   433,  -618,   492,   903,   627,   903,   304,   405,  -618,
    -618,   723,   -49,   650,  -618,   247,   701,  -618,   -49,   -57,
     163,  -618,  -618,  -618,   903,   703,   547,   493,   160,   236,
      64,   236,   204,   755,    95,   427,   527,  -618,  -618,   649,
     614,   236,   759,   903,   632,   608,   694,   301,   187,   696,
    -618,  -618,  -618,   220,   169,   731,  -618,  -618,  -618,  -618,
     527,    32,  -618,  -618,  -618,   236,  -618,  -618,   439,  -618,
     369,    78,    78,    78,    78,    78,  -618,    78,    78,    78,
     236,   236,  -618,   236,   236,   -49,   657,   204,   204,   870,
     734,   848,  -618,  -618,  -618,  -618,   903,   903,   903,   674,
     232,  -618,   903,   903,   834,   834,   764,   236,  -618,  -618,
     843,   204,   236,  -618,  -618,   666,   903,  -618,  -618,   247,
     247,   670,   793,  -618,  -618,   903,   903,   903,   686,   903,
    -618,  -618,   689,   781,   783,   700,    36,  -618,   247,   739,
     739,  -618,  -618,   774,   702,  -618,   852,   739,   713,  -618,
    -618,  -618,   715,   440,   732,  -618,   483,  -618,   454,  -618,
     723,   903,   745,    12,   877,   779,  -618,   903,   666,   903,
    -618,   236,   391,   236,   863,   527,   306,  -618,   723,  -618,
    -618,  -618,   749,   236,   733,  -618,   236,  -618,   236,   236,
     236,   236,  -618,   236,   277,  -618,   903,   527,   823,  -618,
    -618,  -618,  -618,  -618,  -618,  -618,  -618,  -618,  -618,  -618,
    -618,  -618,  -618,  -618,   527,   137,    17,   527,  -618,  -618,
     738,  -618,  -618,  -618,  -618,   752,  -618,   210,   248,  -618,
     487,   786,   768,     5,  -618,  -618,   374,   686,   760,  -618,
     760,   877,    82,   848,   -47,  -618,   761,   639,  -618,   903,
    -618,   769,   782,   782,   903,   236,  -618,   686,   941,   686,
     204,   788,   791,   903,  -618,    26,   916,  -618,   794,  -618,
    -618,  -618,   795,   801,  -618,   805,  -618,   739,   803,   807,
    -618,  -618,   500,   440,  -618,   -49,   946,   879,   951,  -618,
     247,   666,  -618,   883,   639,  -618,   912,  -618,   816,  -618,
     817,   527,   236,   486,  -618,   236,   825,  -618,   751,     9,
     762,   765,   266,   771,   777,   784,   236,   733,  -618,   565,
     236,  -618,   921,  -618,  -618,  -618,  -618,   255,  -618,   834,
     252,  -618,  -618,   514,  -618,   843,   779,   236,   543,  -618,
      65,  -618,  -618,   953,   527,   903,   -39,   903,   903,   549,
    -618,  -618,  -618,    36,  -618,  -618,   828,   840,  -618,   553,
     849,   939,   926,   436,   942,   458,  -618,  -618,   922,  -618,
     929,  -618,  -618,   903,    22,   903,  -618,   527,   236,   527,
    -618,  -618,  -618,  -618,  -618,   236,  -618,   236,  -618,  -618,
     797,     9,  -618,  -618,   492,   527,   945,  -618,   575,  -618,
    -618,   527,  -618,   944,   938,   938,   938,   204,   877,  -618,
     965,   981,   876,   848,  -618,  -618,   527,  -618,   903,  -618,
    -618,   236,  -618,  -618,   606,   620,  -618,  -618,  -618,  -618,
    -618,   894,   204,   954,   507,  -618,   522,  -618,  -618,  -618,
    -618,  1008,  -618,   895,   637,   527,   799,   810,  -618,     5,
    -618,  -618,   311,   877,  -618,  -618,  -618,  -618,   639,  -618,
     877,  1047,  1000,   730,  -618,  -618,   527,   958,  -618,   900,
     -36,   903,  -618,  -618,   903,  -618,  -618,  -618,   901,  -618,
    -618,   972,   236,   204,   779,  -618,   903,  -618,   535,   904,
     905,  -618,   204,   906,   639,  -618,   909,  -618,   903,   974,
     639,   974,   652,    88,   566,  -618,   974,  -618,  -618,    23,
     382,  -618,  -618,  -618,  1070,  -618,  1074,  -618,  -618,  -618
};

/* YYPGOTO[NTERM-NUM].  */
static const short int yypgoto[] =
{
    -618,  -618,  -618,  1062,  -618,  -618,  -618,  -618,   395,   502,
    -376,  -618,   381,  -618,  -618,  -618,  -618,   152,  -618,  -432,
    -618,  -154,   -35,   326,  -618,   800,   804,  -618,  -618,  -618,
    -424,  -618,  -458,  -498,  -618,   348,  -618,   560,  -252,  -618,
     472,  -618,  -618,  -618,  -618,   577,  1076,   915,  -618,  -618,
    -618,  -618,  -618,  -618,  -618,  -404,  -618,  -617,  -618,   313,
     309,   305,  -618,   459,  -618,   675,   291,  -192,  -618,   531,
    -618,  -618,   712,    18,  -618,   861,   -59,  -547,  -618,    33,
     719,  -618,  -618,  -207,   711,  -151,   498,  -618,  -618,  -618,
    -582,   864,  -618,   707,    -6,   572,   684,   -42,  -618,  -618,
    -618,   860,  -618,  -618,   792,  -618,  -618,  -191,   736,   737,
     871,  -618,   697,  -618,  -618,  -618,  -618,  -360,  -371,   646,
    -384,  -618,  -618,  -618,  -158,   105,  -618,  -105,  -618,  -618,
     973,  -618
};

/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
   positive, shift that token.  If negative, reduce the rule which
   number is the opposite.  If zero, do what YYDEFACT says.
   If YYTABLE_NINF, syntax error.  */
#define YYTABLE_NINF -307
static const short int yytable[] =
{
      49,   315,    92,   290,    96,   158,   159,   210,   211,   247,
     249,   505,   575,   308,   259,   608,   388,   258,   263,   530,
     189,   219,   220,   264,   600,   393,   715,   721,   717,   562,
     526,   175,    71,   317,   695,   182,    38,    39,    44,   391,
     589,    65,   793,   176,   178,    69,    70,   573,   561,   553,
     278,   511,   174,   311,   171,   192,   558,   178,  -217,   198,
     680,   394,   367,   323,   378,   367,    12,   382,   228,   279,
     630,   167,   579,    87,   384,   699,   168,    35,   177,   544,
     160,   172,    33,   483,   443,   275,   484,   179,   283,   611,
      33,   269,    45,   631,   443,    94,   280,   752,   205,   753,
     179,   383,   397,   230,   458,    87,   545,   476,    88,   330,
      40,   700,   444,   794,   722,   311,   318,   398,    14,    45,
    -217,   456,   615,    41,   385,   173,   408,   546,    42,   703,
     161,   662,   768,   789,   795,   376,   233,    86,   376,   261,
      88,    91,   312,    88,   269,   512,    98,   392,   213,   173,
     153,   777,   153,   153,    88,    33,   281,    46,   319,   562,
     231,    47,   162,   614,   162,   302,   303,   791,   634,   635,
     180,   331,   446,   671,   638,   268,    81,    82,    83,    84,
      85,   274,   775,   180,    46,   680,   637,   163,    47,   163,
     599,   164,   165,   164,   165,   652,   485,   306,    88,    45,
     527,   314,   316,   320,   453,    88,   228,   201,   324,   325,
     326,   327,   328,   729,   317,   329,   333,   335,   332,   507,
     790,   510,   340,    68,   508,   517,   290,   381,   516,   162,
      72,   758,   473,   336,   370,   337,    81,    82,    83,    84,
      85,   395,   162,    81,    82,    83,    84,    85,   537,   239,
     469,   539,   574,   709,   163,   526,   739,    45,   164,   165,
     228,   367,   341,    33,    46,   248,   248,   163,    47,   448,
     612,   164,   165,    45,   511,   257,    45,   257,   286,    45,
     377,   257,   451,   471,   162,    33,   683,   271,   464,    81,
      82,    83,    84,    85,    46,   230,   277,   318,   224,    32,
     291,   760,   294,   452,   297,   455,   498,   305,   761,   163,
     435,    45,   204,   164,   165,   462,   442,   -60,   -60,   -60,
     -60,   -60,    46,   684,   201,   -32,    47,   665,   474,   -49,
     412,    33,   685,   744,   162,    66,   138,   139,    46,   477,
     596,    46,    47,    45,    46,    47,   373,    12,    47,   626,
      45,   374,   602,   169,   494,   495,   397,   496,   497,   163,
      90,   531,    45,   164,   165,   686,   413,   162,   512,   468,
      12,   398,   170,   271,   389,   183,    46,    40,   651,   376,
      47,   522,   346,   480,   402,   629,   274,    87,   472,   257,
     602,   411,   163,   687,   187,    42,   164,   165,   515,    14,
     440,    81,    82,    83,    84,    85,   571,   367,    46,   302,
     414,    40,    47,   162,   580,    46,   265,   201,    45,    47,
     190,   688,    88,   677,   162,    74,    12,    46,   585,    42,
     191,    47,    75,    95,   666,   415,   347,   481,   163,   101,
     228,   597,   164,   165,   348,   581,   403,   583,   162,   163,
     349,   482,    76,   164,   165,   193,   229,   588,   682,   350,
     590,   404,   591,   592,   593,   594,  -155,   595,   197,   704,
     705,   286,   796,   163,   503,   230,   153,   164,   165,   544,
      77,   506,   257,    46,   257,   160,   302,    47,   257,   248,
     248,    45,   195,   797,   674,   153,   738,   724,   199,    12,
     723,   544,  -155,   566,   440,   440,   545,   346,    78,   567,
     536,   257,   538,   582,   257,   162,   351,   352,   353,   354,
     355,   750,   338,   291,   339,   356,   640,   546,   545,   624,
     478,  -155,   479,  -155,   200,   161,  -229,  -229,   162,   357,
     163,   344,   345,   201,   164,   165,  -155,   358,   359,   546,
     544,    14,   578,   375,   376,   773,    46,   162,   276,   202,
      47,   347,   641,   163,   203,   544,   568,   164,   165,   348,
     403,  -155,   774,   417,   418,   349,   657,   545,   544,   659,
       1,   780,   163,   647,   350,   404,   164,   165,   405,   207,
     670,   642,   545,   643,   675,   459,   345,    36,   546,   208,
     770,   681,    37,     2,   209,   545,   644,     3,   658,   544,
     212,   696,    33,   546,    81,    82,    83,    84,    85,     4,
     782,   304,   569,   570,     5,   241,   546,   271,   153,    33,
     262,   645,     6,   162,   620,   214,   545,   215,     7,   623,
     162,   351,   352,   353,   354,   355,     8,   216,   257,   217,
     356,   218,   725,   302,   242,   605,   376,   546,   163,   726,
     309,   727,   164,   165,   357,   163,   221,   162,   222,   164,
     165,   223,   358,   359,   162,   440,  -306,    81,    82,    83,
      84,    85,   692,   693,     9,   240,    10,   243,    11,    12,
     532,   533,   163,   284,   162,   746,   164,   165,   302,   163,
     292,   765,   322,   164,   165,   302,    13,    33,    52,    53,
      54,   697,   698,   295,   248,   450,   769,   706,   376,   163,
     153,   710,   711,   164,   165,   136,   681,   138,   139,   343,
     702,   776,   257,   257,   250,   251,   252,   253,   419,   143,
     367,    14,   102,   731,   732,   368,   103,   420,   369,    55,
     379,   104,   105,   387,    56,   162,   316,   106,   720,    57,
     257,   162,   107,   421,   422,   108,   109,   110,   111,   390,
     112,   113,   423,    58,   747,   376,    59,   466,   396,   162,
     163,   409,   461,   424,   164,   165,   163,   114,   748,   376,
     164,   165,   436,   184,   185,   186,   425,   188,   153,   441,
     465,   449,   115,   620,   163,   755,   376,   457,   164,   165,
     426,   116,   427,    60,   117,   118,   119,   460,   428,    61,
     788,   376,   463,   120,   121,   499,   122,   521,    81,    82,
      83,    84,    85,   529,   123,   535,    62,   736,   737,   534,
     429,   162,   509,   162,   225,   225,   430,   431,   153,   124,
     125,   254,   255,   126,   127,   376,   540,   128,   129,   541,
     432,   542,   467,   130,   131,   470,   163,   543,   163,   555,
     164,   165,   164,   165,   132,   133,   557,   551,   162,   554,
     559,   162,   555,   257,    81,    82,   134,    84,    85,   135,
     136,   137,   138,   139,   140,   141,   162,   142,   162,   475,
     379,   565,   504,   163,   143,   144,   163,   164,   165,   162,
     164,   165,   162,   572,   576,   584,   598,   587,   162,   661,
     601,   163,   606,   163,   162,   164,   165,   164,   165,   609,
     663,   162,   617,   664,   163,   607,   529,   163,   164,   165,
     667,   164,   165,   163,   162,   668,   162,   164,   165,   163,
     625,   570,   669,   164,   165,   627,   163,   162,   628,   632,
     164,   165,   555,   633,   636,   728,   639,   756,   555,   163,
     555,   163,   648,   164,   165,   164,   165,   650,   757,   649,
     653,   654,   163,   655,   529,   676,   164,   165,    81,    82,
      83,    84,    85,   660,   244,   701,   708,    81,    82,    83,
      84,    85,    81,    82,    83,    84,    85,   555,   245,   246,
     523,    81,    82,    83,    84,    85,   712,   713,   144,   714,
     716,   733,   718,   144,    81,    82,    83,    84,    85,   719,
     372,    81,    82,    83,    84,    85,    81,    82,    83,    84,
      85,   734,   740,   502,   298,   730,   741,   743,    88,   487,
     488,   489,   490,   749,   491,   492,   493,    81,    82,    83,
      84,    85,   754,   751,   201,   762,   763,   766,   767,   771,
     772,   778,   783,   798,   201,   345,   778,   799,    73,   745,
     759,   407,   656,   400,   616,   604,    67,   694,   260,   781,
     787,   792,   707,   550,   646,   365,   520,   672,   366,   528,
     371,   342,   454,   500,   586,   501,   227
};

/* YYCONFLP[YYPACT[STATE-NUM]] -- Pointer into YYCONFL of start of
   list of conflicting reductions corresponding to action entry for
   state STATE-NUM in yytable.  0 means no conflicts.  The list in
   yyconfl is terminated by a rule number of 0.  */
static const unsigned char yyconflp[] =
{
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    49,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     5,     0,     0,     0,     0,     0,     0,     0,
       9,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    31,     0,     0,
       0,     0,     0,     0,     0,     7,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,    33,    35,    37,    39,    41,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,    11,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,    13,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     1,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,    65,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,    21,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,    15,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    69,     0,     0,
       0,     0,     0,     0,     0,     0,    27,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,    71,
       0,    23,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,    73,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,    17,    75,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,    79,     0,     0,     3,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    89,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,    19,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    25,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
      29,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,    43,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
      45,     0,    47,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,    51,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,    55,    53,     0,     0,     0,     0,    57,     0,
      59,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,    61,    63,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    67,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,    77,     0,     0,     0,     0,     0,
       0,    81,     0,     0,    83,    85,    87,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0
};

/* YYCONFL[I] -- lists of conflicting rule numbers, each terminated by
   0, pointed into by YYCONFLP.  */
static const short int yyconfl[] =
{
       0,   217,     0,   217,     0,   217,     0,   217,     0,   217,
       0,   217,     0,   217,     0,   145,     0,   217,     0,   401,
       0,   202,     0,   202,     0,   217,     0,   329,     0,    86,
       0,   249,     0,    78,     0,    78,     0,    78,     0,    78,
       0,    78,     0,   380,     0,   382,     0,   380,     0,   202,
       0,    34,     0,   162,     0,   380,     0,   380,     0,   380,
       0,    59,     0,    34,     0,   238,     0,   380,     0,   161,
       0,   161,     0,   161,     0,   161,     0,   245,     0,   161,
       0,   165,     0,   247,     0,   241,     0,   165,     0,   161,
       0
};

static const unsigned short int yycheck[] =
{
       6,   208,    37,   195,    39,    47,    48,   112,   113,   160,
     161,   371,   444,   204,   172,   513,   268,   171,   176,   395,
      79,   126,   127,   177,     7,    10,   643,     5,   645,   433,
     390,    66,    14,    48,   616,    70,     3,     4,     5,    61,
     464,     8,    19,    63,     5,    12,    13,    35,   432,   420,
       4,    42,    75,    51,    98,    90,   427,     5,    69,    94,
     607,    46,   101,    75,    98,   101,   115,    98,    56,    23,
      44,   173,   448,   131,    75,    10,   178,   143,    98,    43,
      75,   125,   166,     5,   141,   190,     8,    48,   193,   521,
     166,     9,   107,    67,   141,   121,    50,   714,   104,   716,
      48,    63,    13,    91,     9,   131,    70,    75,   166,    17,
     121,    46,   169,    90,    92,    51,   131,    28,   167,   107,
     131,   312,   169,   134,   125,   169,   284,    91,   139,   168,
     125,   589,   168,    45,   111,   169,   142,    32,   169,   174,
     166,    36,   140,   166,     9,   136,    41,   169,   115,   169,
      45,   768,    47,    48,   166,   166,   110,   172,   173,   563,
     142,   176,   147,   523,   147,   200,   201,   784,   552,   553,
     131,    79,     9,   597,   558,   181,   154,   155,   156,   157,
     158,   187,   764,   131,   172,   732,   557,   172,   176,   172,
      53,   176,   177,   176,   177,   571,   118,   203,   166,   107,
     391,   207,   208,   209,   140,   166,    56,   169,   214,   215,
     216,   217,   218,   671,    48,   221,   222,   223,   126,   377,
     132,   379,   228,   143,   378,   383,   418,   262,   382,   147,
       0,   729,    63,   159,   240,   161,   154,   155,   156,   157,
     158,   276,   147,   154,   155,   156,   157,   158,   406,   144,
      63,   409,   443,   637,   172,   615,   688,   107,   176,   177,
      56,   101,   229,   166,   172,   160,   161,   172,   176,   304,
     522,   176,   177,   107,    42,   170,   107,   172,    31,   107,
     125,   176,   122,    63,   147,   166,    34,   182,   323,   154,
     155,   156,   157,   158,   172,    91,   191,   131,   176,   134,
     195,   733,   197,   309,   199,   311,   365,   202,   740,   172,
     292,   107,   140,   176,   177,   321,   298,   154,   155,   156,
     157,   158,   172,    71,   169,    69,   176,    61,   334,    77,
      26,   166,    80,   693,   147,     9,   162,   163,   172,   345,
      63,   172,   176,   107,   172,   176,   241,   115,   176,   540,
     107,   246,   142,   108,   360,   361,    13,   363,   364,   172,
      34,   396,   107,   176,   177,   113,    62,   147,   136,    68,
     115,    28,   167,   268,   269,   168,   172,   121,   570,   169,
     176,   387,    14,    14,   279,   543,   392,   131,   168,   284,
     142,   286,   172,   141,    18,   139,   176,   177,   380,   167,
     295,   154,   155,   156,   157,   158,   441,   101,   172,   444,
     106,   121,   176,   147,   449,   172,   173,   169,   107,   176,
     155,   169,   166,   168,   147,    47,   115,   172,   122,   139,
      69,   176,    54,    38,   168,   131,    68,    68,   172,    44,
      56,   476,   176,   177,    76,   451,    13,   453,   147,   172,
      82,    82,    74,   176,   177,   155,    72,   463,   609,    91,
     466,    28,   468,   469,   470,   471,    26,   473,   170,   627,
     628,    31,    90,   172,   369,    91,   371,   176,   177,    43,
     102,   376,   377,   172,   379,    75,   521,   176,   383,   384,
     385,   107,   167,   111,   599,   390,   687,   655,    69,   115,
     654,    43,    62,    20,   399,   400,    70,    14,   130,    26,
     405,   406,   407,   122,   409,   147,   148,   149,   150,   151,
     152,   712,   159,   418,   161,   157,    26,    91,    70,   535,
      91,    91,    93,    93,    63,   125,   168,   169,   147,   171,
     172,   168,   169,   169,   176,   177,   106,   179,   180,    91,
      43,   167,   447,   168,   169,   762,   172,   147,    98,    69,
     176,    68,    62,   172,   167,    43,    83,   176,   177,    76,
      13,   131,   763,   168,   169,    82,   582,    70,    43,   585,
       6,   772,   172,   565,    91,    28,   176,   177,    31,   167,
     596,    91,    70,    93,   600,   168,   169,   134,    91,   167,
     754,   607,   139,    29,   167,    70,   106,    33,   122,    43,
     167,   617,   166,    91,   154,   155,   156,   157,   158,    45,
     778,    98,   168,   169,    50,   170,    91,   522,   523,   166,
       9,   131,    58,   147,   529,   167,    70,   167,    64,   534,
     147,   148,   149,   150,   151,   152,    72,   167,   543,   167,
     157,   167,   658,   688,   162,   168,   169,    91,   172,   665,
     140,   667,   176,   177,   171,   172,   167,   147,   167,   176,
     177,   167,   179,   180,   147,   570,   167,   154,   155,   156,
     157,   158,   168,   169,   110,   167,   112,   162,   114,   115,
     399,   400,   172,   153,   147,   701,   176,   177,   733,   172,
       9,   743,   157,   176,   177,   740,   132,   166,     4,     5,
       6,   168,   169,   167,   609,   168,   751,   168,   169,   172,
     615,   168,   169,   176,   177,   160,   732,   162,   163,   168,
     625,   766,   627,   628,   162,   163,   164,   165,    15,   174,
     101,   167,    12,   168,   169,     7,    16,    24,   170,    45,
     167,    21,    22,   169,    50,   147,   762,    27,   653,    55,
     655,   147,    32,    40,    41,    35,    36,    37,    38,   116,
      40,    41,    49,    69,   168,   169,    72,   169,    98,   147,
     172,   154,   168,    60,   176,   177,   172,    57,   168,   169,
     176,   177,   142,    74,    75,    76,    73,    78,   693,    98,
     168,    98,    72,   698,   172,   168,   169,    52,   176,   177,
      87,    81,    89,   109,    84,    85,    86,   168,    95,   115,
     168,   169,    63,    93,    94,   168,    96,    63,   154,   155,
     156,   157,   158,   167,   104,    42,   132,   685,   686,   169,
     117,   147,   168,   147,   132,   133,   123,   124,   743,   119,
     120,   167,   168,   123,   124,   169,   167,   127,   128,    78,
     137,    78,   168,   133,   134,   169,   172,   167,   172,   167,
     176,   177,   176,   177,   144,   145,    24,   138,   147,   105,
     167,   147,   167,   778,   154,   155,   156,   157,   158,   159,
     160,   161,   162,   163,   164,   165,   147,   167,   147,   168,
     167,   169,   168,   172,   174,   175,   172,   176,   177,   147,
     176,   177,   147,   168,   135,    52,    93,   168,   147,   168,
     168,   172,   136,   172,   147,   176,   177,   176,   177,   169,
     168,   147,   171,   168,   172,   167,   167,   172,   176,   177,
     169,   176,   177,   172,   147,   168,   147,   176,   177,   172,
       9,   169,   168,   176,   177,   167,   172,   147,   167,    43,
     176,   177,   167,   169,   159,   168,   159,   168,   167,   172,
     167,   172,    26,   176,   177,   176,   177,    26,   168,   100,
      97,    69,   172,   167,   167,    64,   176,   177,   154,   155,
     156,   157,   158,   168,   160,    42,   168,   154,   155,   156,
     157,   158,   154,   155,   156,   157,   158,   167,   174,   175,
     167,   154,   155,   156,   157,   158,   167,    78,   175,    93,
      78,    77,   100,   175,   154,   155,   156,   157,   158,   100,
     173,   154,   155,   156,   157,   158,   154,   155,   156,   157,
     158,   103,    77,   173,   167,   100,    65,   171,   166,   352,
     353,   354,   355,   159,   357,   358,   359,   154,   155,   156,
     157,   158,    54,   109,   169,    18,    66,   109,   168,   168,
      98,   167,    98,     3,   169,   169,   167,     3,    16,   698,
     732,   281,   580,   279,   524,   508,    10,   615,   173,   776,
     781,   786,   633,   418,   563,   234,   385,   599,   234,   392,
     240,   230,   310,   367,   458,   368,   133
};

/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
   symbol of state STATE-NUM.  */
static const unsigned short int yystos[] =
{
       0,     6,    29,    33,    45,    50,    58,    64,    72,   110,
     112,   114,   115,   132,   167,   182,   183,   184,   185,   186,
     187,   188,   209,   217,   223,   225,   251,   252,   254,   255,
     257,   258,   134,   166,   260,   143,   134,   139,   260,   260,
     121,   134,   139,   204,   260,   107,   172,   176,   253,   275,
     276,   277,     4,     5,     6,    45,    50,    55,    69,    72,
     109,   115,   132,   227,   228,   260,   204,   227,   143,   260,
     260,   254,     0,   184,    47,    54,    74,   102,   130,   256,
     272,   154,   155,   156,   157,   158,   306,   131,   166,   189,
     204,   306,   203,   306,   121,   189,   203,   224,   306,   202,
     203,   189,    12,    16,    21,    22,    27,    32,    35,    36,
      37,    38,    40,    41,    57,    72,    81,    84,    85,    86,
      93,    94,    96,   104,   119,   120,   123,   124,   127,   128,
     133,   134,   144,   145,   156,   159,   160,   161,   162,   163,
     164,   165,   167,   174,   175,   210,   267,   278,   280,   281,
     284,   298,   303,   306,   308,   309,   310,   312,   278,   278,
      75,   125,   147,   172,   176,   177,   214,   173,   178,   108,
     167,    98,   125,   169,    75,   203,    63,    98,     5,    48,
     131,   261,   203,   168,   261,   261,   261,    18,   261,   257,
     155,    69,   203,   155,   229,   167,   232,   170,   203,    69,
      63,   169,    69,   167,   140,   275,   287,   167,   167,   167,
     308,   308,   167,   260,   167,   167,   167,   167,   167,   308,
     308,   167,   167,   167,   176,   253,   311,   311,    56,    72,
      91,   254,   264,   275,   279,   288,   289,   290,   291,   306,
     167,   170,   162,   162,   160,   174,   175,   266,   306,   266,
     276,   276,   276,   276,   277,   277,   305,   306,   202,   305,
     228,   203,     9,   305,   202,   173,   262,   263,   275,     9,
     219,   306,   273,   274,   275,   308,    98,   306,     4,    23,
      50,   110,   205,   308,   153,   230,    31,   236,   245,   246,
     248,   306,     9,   233,   306,   167,   304,   306,   167,   194,
     199,   200,   203,   203,    98,   306,   275,   275,   288,   140,
     286,    51,   140,   285,   275,   264,   275,    48,   131,   173,
     275,   282,   157,    75,   275,   275,   275,   275,   275,   275,
      17,    79,   126,   275,   283,   275,   159,   161,   159,   161,
     275,   260,   291,   168,   168,   169,    14,    68,    76,    82,
      91,   148,   149,   150,   151,   152,   157,   171,   179,   180,
     292,   294,   295,   296,   297,   256,   272,   101,     7,   170,
     275,   282,   173,   306,   306,   168,   169,   125,    98,   167,
     211,   203,    98,    63,    75,   125,   259,   169,   219,   306,
     116,    61,   169,    10,    46,   203,    98,    13,    28,   207,
     207,   208,   306,    13,    28,    31,   206,   206,   305,   154,
     231,   306,    26,    62,   106,   131,   237,   168,   169,    15,
      24,    40,    41,    49,    60,    73,    87,    89,    95,   117,
     123,   124,   137,   300,   235,   254,   142,   234,   247,   248,
     306,    98,   254,   141,   169,   218,     9,   201,   203,    98,
     168,   122,   275,   140,   285,   275,   288,    52,     9,   168,
     168,   168,   275,    63,   203,   168,   169,   168,    68,    63,
     169,    63,   168,    63,   275,   168,    75,   275,    91,    93,
      14,    68,    82,     5,     8,   118,   293,   293,   293,   293,
     293,   293,   293,   293,   275,   275,   275,   275,   257,   168,
     289,   290,   173,   306,   168,   298,   306,   305,   202,   168,
     305,    42,   136,   212,   213,   254,   202,   305,   265,   266,
     265,    63,   275,   167,   220,   221,   298,   288,   274,   167,
     191,   203,   247,   247,   169,    42,   306,   305,   306,   305,
     167,    78,    78,   167,    43,    70,    91,   238,   239,   244,
     246,   138,   299,   299,   105,   167,   301,    24,   299,   167,
     302,   301,   236,   249,   250,   169,    20,    26,    83,   168,
     169,   203,   168,    35,   288,   200,   135,   271,   306,   191,
     203,   275,   122,   275,    52,   122,   300,   168,   275,   211,
     275,   275,   275,   275,   275,   275,    63,   203,    93,    53,
       7,   168,   142,   226,   226,   168,   136,   167,   214,   169,
     195,   200,   219,   222,   298,   169,   218,   171,   192,   193,
     306,   190,   191,   306,   275,     9,   288,   167,   167,   305,
      44,    67,    43,   169,   301,   301,   159,   299,   301,   159,
      26,    62,    91,    93,   106,   131,   250,   254,    26,   100,
      26,   248,   191,    97,    69,   167,   190,   275,   122,   275,
     168,   168,   213,   168,   168,    61,   168,   169,   168,   168,
     275,   211,   267,   307,   308,   275,    64,   168,   215,   216,
     258,   275,   266,    34,    71,    80,   113,   141,   169,   196,
     197,   268,   168,   169,   221,   271,   275,   168,   169,    10,
      46,    42,   306,   168,   305,   305,   168,   244,   168,   301,
     168,   169,   167,    78,    93,   238,    78,   238,   100,   100,
     306,     5,    92,   202,   305,   275,   275,   275,   168,   213,
     100,   168,   169,    77,   103,   198,   198,   198,   288,   200,
      77,    65,   269,   171,   298,   193,   275,   168,   168,   159,
     288,   109,   238,   238,    54,   168,   168,   168,   214,   216,
     200,   200,    18,    66,   270,   278,   109,   168,   168,   203,
     202,   168,    98,   264,   288,   271,   203,   238,   167,   240,
     288,   240,   305,    98,   241,   242,   243,   241,   168,    45,
     132,   238,   242,    19,    90,   111,    90,   111,     3,     3
};


/* Prevent warning if -Wmissing-prototypes.  */
int yyparse (void);

/* Error token number */
#define YYTERROR 1

/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
   If N is 0, then set CURRENT to the empty location which ends
   the previous symbol: RHS[0] (always defined).  */


#define YYRHSLOC(Rhs, K) ((Rhs)[K].yystate.yyloc)
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)				\
    do									\
      if (YYID (N))							\
	{								\
	  (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;	\
	  (Current).first_column = YYRHSLOC (Rhs, 1).first_column;	\
	  (Current).last_line    = YYRHSLOC (Rhs, N).last_line;		\
	  (Current).last_column  = YYRHSLOC (Rhs, N).last_column;	\
	}								\
      else								\
	{								\
	  (Current).first_line   = (Current).last_line   =		\
	    YYRHSLOC (Rhs, 0).last_line;				\
	  (Current).first_column = (Current).last_column =		\
	    YYRHSLOC (Rhs, 0).last_column;				\
	}								\
    while (YYID (0))

/* YY_LOCATION_PRINT -- Print the location on the stream.
   This macro was not mandated originally: define only if we know
   we won't break user code: when these are the locations we know.  */

# define YY_LOCATION_PRINT(File, Loc)			\
    fprintf (File, "%d.%d-%d.%d",			\
	     (Loc).first_line, (Loc).first_column,	\
	     (Loc).last_line,  (Loc).last_column)
#endif


#ifndef YY_LOCATION_PRINT
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
#endif


/* YYLEX -- calling `yylex' with the right arguments.  */
#define YYLEX yylex ()

YYSTYPE yylval;

YYLTYPE yylloc;

int yynerrs;
int yychar;

static const int YYEOF = 0;
static const int YYEMPTY = -2;

typedef enum { yyok, yyaccept, yyabort, yyerr } YYRESULTTAG;

#define YYCHK(YYE)							     \
   do { YYRESULTTAG yyflag = YYE; if (yyflag != yyok) return yyflag; }	     \
   while (YYID (0))

#if YYDEBUG

# ifndef YYFPRINTF
#  define YYFPRINTF fprintf
# endif

# define YYDPRINTF(Args)			\
do {						\
  if (yydebug)					\
    YYFPRINTF Args;				\
} while (YYID (0))


/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

/*ARGSUSED*/
static void
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
{
  if (!yyvaluep)
    return;
  YYUSE (yylocationp);
# ifdef YYPRINT
  if (yytype < YYNTOKENS)
    YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# else
  YYUSE (yyoutput);
# endif
  switch (yytype)
    {
      default:
	break;
    }
}


/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

static void
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
{
  if (yytype < YYNTOKENS)
    YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  else
    YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);

  YY_LOCATION_PRINT (yyoutput, *yylocationp);
  YYFPRINTF (yyoutput, ": ");
  yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp);
  YYFPRINTF (yyoutput, ")");
}

# define YY_SYMBOL_PRINT(Title, Type, Value, Location)			    \
do {									    \
  if (yydebug)								    \
    {									    \
      YYFPRINTF (stderr, "%s ", Title);					    \
      yy_symbol_print (stderr, Type,					    \
		       Value, Location);  \
      YYFPRINTF (stderr, "\n");						    \
    }									    \
} while (YYID (0))

/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;

#else /* !YYDEBUG */

# define YYDPRINTF(Args)
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)

#endif /* !YYDEBUG */

/* YYINITDEPTH -- initial size of the parser's stacks.  */
#ifndef	YYINITDEPTH
# define YYINITDEPTH 200
#endif

/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
   if the built-in stack extension method is used).

   Do not make this value too large; the results are undefined if
   SIZE_MAX < YYMAXDEPTH * sizeof (GLRStackItem)
   evaluated with infinite-precision integer arithmetic.  */

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif

/* Minimum number of free items on the stack allowed after an
   allocation.  This is to allow allocation and initialization
   to be completed by functions that call yyexpandGLRStack before the
   stack is expanded, thus insuring that all necessary pointers get
   properly redirected to new data.  */
#define YYHEADROOM 2

#ifndef YYSTACKEXPANDABLE
# if (! defined __cplusplus \
      || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
	  && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))
#  define YYSTACKEXPANDABLE 1
# else
#  define YYSTACKEXPANDABLE 0
# endif
#endif

#if YYSTACKEXPANDABLE
# define YY_RESERVE_GLRSTACK(Yystack)			\
  do {							\
    if (Yystack->yyspaceLeft < YYHEADROOM)		\
      yyexpandGLRStack (Yystack);			\
  } while (YYID (0))
#else
# define YY_RESERVE_GLRSTACK(Yystack)			\
  do {							\
    if (Yystack->yyspaceLeft < YYHEADROOM)		\
      yyMemoryExhausted (Yystack);			\
  } while (YYID (0))
#endif


#if YYERROR_VERBOSE

# ifndef yystpcpy
#  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
#   define yystpcpy stpcpy
#  else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
   YYDEST.  */
static char *
yystpcpy (char *yydest, const char *yysrc)
{
  char *yyd = yydest;
  const char *yys = yysrc;

  while ((*yyd++ = *yys++) != '\0')
    continue;

  return yyd - 1;
}
#  endif
# endif

# ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
   quotes and backslashes, so that it's suitable for yyerror.  The
   heuristic is that double-quoting is unnecessary unless the string
   contains an apostrophe, a comma, or backslash (other than
   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
   null, do not copy; instead, return the length of what the result
   would have been.  */
static size_t
yytnamerr (char *yyres, const char *yystr)
{
  if (*yystr == '"')
    {
      size_t yyn = 0;
      char const *yyp = yystr;

      for (;;)
	switch (*++yyp)
	  {
	  case '\'':
	  case ',':
	    goto do_not_strip_quotes;

	  case '\\':
	    if (*++yyp != '\\')
	      goto do_not_strip_quotes;
	    /* Fall through.  */
	  default:
	    if (yyres)
	      yyres[yyn] = *yyp;
	    yyn++;
	    break;

	  case '"':
	    if (yyres)
	      yyres[yyn] = '\0';
	    return yyn;
	  }
    do_not_strip_quotes: ;
    }

  if (! yyres)
    return strlen (yystr);

  return yystpcpy (yyres, yystr) - yyres;
}
# endif

#endif /* !YYERROR_VERBOSE */

/** State numbers, as in LALR(1) machine */
typedef int yyStateNum;

/** Rule numbers, as in LALR(1) machine */
typedef int yyRuleNum;

/** Grammar symbol */
typedef short int yySymbol;

/** Item references, as in LALR(1) machine */
typedef short int yyItemNum;

typedef struct yyGLRState yyGLRState;
typedef struct yyGLRStateSet yyGLRStateSet;
typedef struct yySemanticOption yySemanticOption;
typedef union yyGLRStackItem yyGLRStackItem;
typedef struct yyGLRStack yyGLRStack;

struct yyGLRState {
  /** Type tag: always true.  */
  yybool yyisState;
  /** Type tag for yysemantics.  If true, yysval applies, otherwise
   *  yyfirstVal applies.  */
  yybool yyresolved;
  /** Number of corresponding LALR(1) machine state.  */
  yyStateNum yylrState;
  /** Preceding state in this stack */
  yyGLRState* yypred;
  /** Source position of the first token produced by my symbol */
  size_t yyposn;
  union {
    /** First in a chain of alternative reductions producing the
     *  non-terminal corresponding to this state, threaded through
     *  yynext.  */
    yySemanticOption* yyfirstVal;
    /** Semantic value for this state.  */
    YYSTYPE yysval;
  } yysemantics;
  /** Source location for this state.  */
  YYLTYPE yyloc;
};

struct yyGLRStateSet {
  yyGLRState** yystates;
  /** During nondeterministic operation, yylookaheadNeeds tracks which
   *  stacks have actually needed the current lookahead.  During deterministic
   *  operation, yylookaheadNeeds[0] is not maintained since it would merely
   *  duplicate yychar != YYEMPTY.  */
  yybool* yylookaheadNeeds;
  size_t yysize, yycapacity;
};

struct yySemanticOption {
  /** Type tag: always false.  */
  yybool yyisState;
  /** Rule number for this reduction */
  yyRuleNum yyrule;
  /** The last RHS state in the list of states to be reduced.  */
  yyGLRState* yystate;
  /** The lookahead for this reduction.  */
  int yyrawchar;
  YYSTYPE yyval;
  YYLTYPE yyloc;
  /** Next sibling in chain of options.  To facilitate merging,
   *  options are chained in decreasing order by address.  */
  yySemanticOption* yynext;
};

/** Type of the items in the GLR stack.  The yyisState field
 *  indicates which item of the union is valid.  */
union yyGLRStackItem {
  yyGLRState yystate;
  yySemanticOption yyoption;
};

struct yyGLRStack {
  int yyerrState;
  /* To compute the location of the error token.  */
  yyGLRStackItem yyerror_range[3];

  YYJMP_BUF yyexception_buffer;
  yyGLRStackItem* yyitems;
  yyGLRStackItem* yynextFree;
  size_t yyspaceLeft;
  yyGLRState* yysplitPoint;
  yyGLRState* yylastDeleted;
  yyGLRStateSet yytops;
};

#if YYSTACKEXPANDABLE
static void yyexpandGLRStack (yyGLRStack* yystackp);
#endif

static void yyFail (yyGLRStack* yystackp, const char* yymsg)
  __attribute__ ((__noreturn__));
static void
yyFail (yyGLRStack* yystackp, const char* yymsg)
{
  if (yymsg != NULL)
    yyerror (yymsg);
  YYLONGJMP (yystackp->yyexception_buffer, 1);
}

static void yyMemoryExhausted (yyGLRStack* yystackp)
  __attribute__ ((__noreturn__));
static void
yyMemoryExhausted (yyGLRStack* yystackp)
{
  YYLONGJMP (yystackp->yyexception_buffer, 2);
}

#if YYDEBUG || YYERROR_VERBOSE
/** A printable representation of TOKEN.  */
static inline const char*
yytokenName (yySymbol yytoken)
{
  if (yytoken == YYEMPTY)
    return "";

  return yytname[yytoken];
}
#endif

/** Fill in YYVSP[YYLOW1 .. YYLOW0-1] from the chain of states starting
 *  at YYVSP[YYLOW0].yystate.yypred.  Leaves YYVSP[YYLOW1].yystate.yypred
 *  containing the pointer to the next state in the chain.  */
static void yyfillin (yyGLRStackItem *, int, int) __attribute__ ((__unused__));
static void
yyfillin (yyGLRStackItem *yyvsp, int yylow0, int yylow1)
{
  yyGLRState* s;
  int i;
  s = yyvsp[yylow0].yystate.yypred;
  for (i = yylow0-1; i >= yylow1; i -= 1)
    {
      YYASSERT (s->yyresolved);
      yyvsp[i].yystate.yyresolved = yytrue;
      yyvsp[i].yystate.yysemantics.yysval = s->yysemantics.yysval;
      yyvsp[i].yystate.yyloc = s->yyloc;
      s = yyvsp[i].yystate.yypred = s->yypred;
    }
}

/* Do nothing if YYNORMAL or if *YYLOW <= YYLOW1.  Otherwise, fill in
 * YYVSP[YYLOW1 .. *YYLOW-1] as in yyfillin and set *YYLOW = YYLOW1.
 * For convenience, always return YYLOW1.  */
static inline int yyfill (yyGLRStackItem *, int *, int, yybool)
     __attribute__ ((__unused__));
static inline int
yyfill (yyGLRStackItem *yyvsp, int *yylow, int yylow1, yybool yynormal)
{
  if (!yynormal && yylow1 < *yylow)
    {
      yyfillin (yyvsp, *yylow, yylow1);
      *yylow = yylow1;
    }
  return yylow1;
}

/** Perform user action for rule number YYN, with RHS length YYRHSLEN,
 *  and top stack item YYVSP.  YYLVALP points to place to put semantic
 *  value ($$), and yylocp points to place for location information
 *  (@$).  Returns yyok for normal return, yyaccept for YYACCEPT,
 *  yyerr for YYERROR, yyabort for YYABORT.  */
/*ARGSUSED*/ static YYRESULTTAG
yyuserAction (yyRuleNum yyn, int yyrhslen, yyGLRStackItem* yyvsp,
	      YYSTYPE* yyvalp,
	      YYLTYPE* YYOPTIONAL_LOC (yylocp),
	      yyGLRStack* yystackp
	      )
{
  yybool yynormal __attribute__ ((__unused__)) =
    (yystackp->yysplitPoint == NULL);
  int yylow;
# undef yyerrok
# define yyerrok (yystackp->yyerrState = 0)
# undef YYACCEPT
# define YYACCEPT return yyaccept
# undef YYABORT
# define YYABORT return yyabort
# undef YYERROR
# define YYERROR return yyerrok, yyerr
# undef YYRECOVERING
# define YYRECOVERING() (yystackp->yyerrState != 0)
# undef yyclearin
# define yyclearin (yychar = YYEMPTY)
# undef YYFILL
# define YYFILL(N) yyfill (yyvsp, &yylow, N, yynormal)
# undef YYBACKUP
# define YYBACKUP(Token, Value)						     \
  return yyerror (YY_("syntax error: cannot back up")),     \
	 yyerrok, yyerr

  yylow = 1;
  if (yyrhslen == 0)
    *yyvalp = yyval_default;
  else
    *yyvalp = yyvsp[YYFILL (1-yyrhslen)].yystate.yysemantics.yysval;
  YYLLOC_DEFAULT ((*yylocp), (yyvsp - yyrhslen), yyrhslen);
  yystackp->yyerror_range[1].yystate.yyloc = *yylocp;

  switch (yyn)
    {
        case 2:

/* Line 936 of glr.c  */
#line 414 "sql.y"
    {{
      SQL_this_parser->statements = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 3:

/* Line 936 of glr.c  */
#line 418 "sql.y"
    {{
      SQL_this_parser->statements = NULL;
    DBG_PRINT}}
    break;

  case 4:

/* Line 936 of glr.c  */
#line 425 "sql.y"
    {{
      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 5:

/* Line 936 of glr.c  */
#line 430 "sql.y"
    {{
      
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);
      
    DBG_PRINT}}
    break;

  case 6:

/* Line 936 of glr.c  */
#line 439 "sql.y"
    { ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node); }
    break;

  case 7:

/* Line 936 of glr.c  */
#line 441 "sql.y"
    { ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node); }
    break;

  case 8:

/* Line 936 of glr.c  */
#line 443 "sql.y"
    { ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node); }
    break;

  case 9:

/* Line 936 of glr.c  */
#line 445 "sql.y"
    { ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node); }
    break;

  case 10:

/* Line 936 of glr.c  */
#line 447 "sql.y"
    { ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node); }
    break;

  case 11:

/* Line 936 of glr.c  */
#line 449 "sql.y"
    { ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node); }
    break;

  case 12:

/* Line 936 of glr.c  */
#line 451 "sql.y"
    { ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node); }
    break;

  case 13:

/* Line 936 of glr.c  */
#line 453 "sql.y"
    { ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node); }
    break;

  case 14:

/* Line 936 of glr.c  */
#line 455 "sql.y"
    { ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node); }
    break;

  case 15:

/* Line 936 of glr.c  */
#line 457 "sql.y"
    { ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node); }
    break;

  case 16:

/* Line 936 of glr.c  */
#line 459 "sql.y"
    { ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node); }
    break;

  case 17:

/* Line 936 of glr.c  */
#line 464 "sql.y"
    {{

      SQL_NODE_PTR node = sql_new_node ( S_NODE_CREATE_TABLE );

      if (node)
        {
          node->dt.create_table.hints  = (int)(((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (7))].yystate.yysemantics.yysval.number);
          node->dt.create_table.name   = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (7))].yystate.yysemantics.yysval.ext_name);
          node->dt.create_table.attr_def_list = (((yyGLRStackItem const *)yyvsp)[YYFILL ((6) - (7))].yystate.yysemantics.yysval.node);
        }

      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 18:

/* Line 936 of glr.c  */
#line 480 "sql.y"
    {{

      SQL_NODE_PTR node = sql_new_node ( S_NODE_CREATE_VIEW );
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 19:

/* Line 936 of glr.c  */
#line 488 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node ( S_NODE_CREATE_INDEX );
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 20:

/* Line 936 of glr.c  */
#line 496 "sql.y"
    {{

      SQL_NODE_PTR node = sql_new_node ( S_NODE_CREATE_USER );

      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 21:

/* Line 936 of glr.c  */
#line 507 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 22:

/* Line 936 of glr.c  */
#line 511 "sql.y"
    {{
    
      SQL_NODE_PTR node = sql_new_node ( S_NODE_ALTER_USER );
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 23:

/* Line 936 of glr.c  */
#line 520 "sql.y"
    {{
    
      SQL_NODE_PTR node = sql_new_node ( S_NODE_ALTER_INDEX );
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 24:

/* Line 936 of glr.c  */
#line 529 "sql.y"
    {{
    
      SQL_NODE_PTR node = sql_new_node ( S_NODE_ALTER_INDEX );
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 25:

/* Line 936 of glr.c  */
#line 538 "sql.y"
    {{

      SQL_NODE_PTR node = sql_new_node ( S_NODE_ALTER_INDEX );
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 26:

/* Line 936 of glr.c  */
#line 549 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node ( S_NODE_RENAME );
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 27:

/* Line 936 of glr.c  */
#line 559 "sql.y"
    {{

      SQL_NODE_PTR node = sql_new_node ( S_NODE_DROP );
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 28:

/* Line 936 of glr.c  */
#line 568 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node ( S_NODE_DROP );
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 29:

/* Line 936 of glr.c  */
#line 575 "sql.y"
    {{

      SQL_NODE_PTR node = sql_new_node ( S_NODE_DROP );
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 30:

/* Line 936 of glr.c  */
#line 583 "sql.y"
    {{

      SQL_NODE_PTR node = sql_new_node ( S_NODE_DROP );
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 31:

/* Line 936 of glr.c  */
#line 591 "sql.y"
    {{

      SQL_NODE_PTR node = sql_new_node ( S_NODE_DROP );
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 32:

/* Line 936 of glr.c  */
#line 601 "sql.y"
    {{

      ((*yyvalp).number) = 0;

    DBG_PRINT}}
    break;

  case 33:

/* Line 936 of glr.c  */
#line 607 "sql.y"
    {{

      ((*yyvalp).number) = 1;

    DBG_PRINT}}
    break;

  case 34:

/* Line 936 of glr.c  */
#line 616 "sql.y"
    {{

      ((*yyvalp).ext_name) = NULL;

    DBG_PRINT}}
    break;

  case 35:

/* Line 936 of glr.c  */
#line 622 "sql.y"
    {{

      ((*yyvalp).ext_name) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.ext_name);

    DBG_PRINT}}
    break;

  case 36:

/* Line 936 of glr.c  */
#line 631 "sql.y"
    {{

      ((*yyvalp).ext_name) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.ext_name);

    DBG_PRINT}}
    break;

  case 37:

/* Line 936 of glr.c  */
#line 640 "sql.y"
    {{
      (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.ext_name)->next = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.ext_name);
      ((*yyvalp).ext_name) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.ext_name);

    DBG_PRINT}}
    break;

  case 38:

/* Line 936 of glr.c  */
#line 646 "sql.y"
    {{
    
      ((*yyvalp).ext_name) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.ext_name);

    DBG_PRINT}}
    break;

  case 39:

/* Line 936 of glr.c  */
#line 655 "sql.y"
    {{
      struct SQL_node_name_t * name = sql_new_name();
      name->name   = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
      
      ((*yyvalp).ext_name) = name;

    DBG_PRINT}}
    break;

  case 40:

/* Line 936 of glr.c  */
#line 663 "sql.y"
    {{

      struct SQL_node_name_t * name = sql_new_name();
      name->name   = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.cptr);
      name->flag   = SQL_ASC;
      
      ((*yyvalp).ext_name) = name;
      
    DBG_PRINT}}
    break;

  case 41:

/* Line 936 of glr.c  */
#line 673 "sql.y"
    {{
      struct SQL_node_name_t * name = sql_new_name();
      name->name   = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.cptr);
      name->flag   = SQL_DESC;
      
      ((*yyvalp).ext_name) = name;
      
    DBG_PRINT}}
    break;

  case 42:

/* Line 936 of glr.c  */
#line 685 "sql.y"
    {{

      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 43:

/* Line 936 of glr.c  */
#line 692 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 44:

/* Line 936 of glr.c  */
#line 701 "sql.y"
    {{

      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 45:

/* Line 936 of glr.c  */
#line 708 "sql.y"
    {{

      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 46:

/* Line 936 of glr.c  */
#line 714 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 47:

/* Line 936 of glr.c  */
#line 723 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 48:

/* Line 936 of glr.c  */
#line 727 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 49:

/* Line 936 of glr.c  */
#line 733 "sql.y"
    {{

      ((*yyvalp).number) = S_JOIN_INNER;

    DBG_PRINT}}
    break;

  case 50:

/* Line 936 of glr.c  */
#line 739 "sql.y"
    {{

      ((*yyvalp).number) = S_JOIN_INNER;

    DBG_PRINT}}
    break;

  case 51:

/* Line 936 of glr.c  */
#line 745 "sql.y"
    {{

      ((*yyvalp).number) = S_JOIN_LEFT_OUTER;

    DBG_PRINT}}
    break;

  case 52:

/* Line 936 of glr.c  */
#line 751 "sql.y"
    {{

      ((*yyvalp).number) = S_JOIN_RIGHT_OUTER;

    DBG_PRINT}}
    break;

  case 55:

/* Line 936 of glr.c  */
#line 765 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (S_NODE_NAME);
      
      if (node)
      {
        node->dt.name = *(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.ext_name);
      }
      
      ((*yyvalp).node) = node;
    }}
    break;

  case 56:

/* Line 936 of glr.c  */
#line 776 "sql.y"
    {{
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.node);
    }}
    break;

  case 57:

/* Line 936 of glr.c  */
#line 783 "sql.y"
    {{
    
      SQL_NODE_PTR node = sql_new_node (S_NODE_SPEC);
      
      if (node)
      {
        node->dt.table_spec.spec = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);
        node->dt.table_spec.as_name = NULL;
      };
      
      ((*yyvalp).node) = node;
      
    DBG_PRINT}}
    break;

  case 58:

/* Line 936 of glr.c  */
#line 797 "sql.y"
    {{
    
      SQL_NODE_PTR node = sql_new_node (S_NODE_SPEC);
      
      if (node)
      {
        node->dt.table_spec.spec = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (6))].yystate.yysemantics.yysval.node);
        node->dt.table_spec.as_name = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (6))].yystate.yysemantics.yysval.cptr);
      };
      
      ((*yyvalp).node) = node;
      
    DBG_PRINT}}
    break;

  case 59:

/* Line 936 of glr.c  */
#line 811 "sql.y"
    {{
    
      SQL_NODE_PTR node = sql_new_node (S_NODE_SPEC);
      
      if (node)
      {
        node->dt.table_spec.spec = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node);
        node->dt.table_spec.as_name = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.cptr);
      };
      
      ((*yyvalp).node) = node;
      
    DBG_PRINT}}
    break;

  case 62:

/* Line 936 of glr.c  */
#line 833 "sql.y"
    {{
      (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.ext_name)->next = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.ext_name);
      ((*yyvalp).ext_name) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.ext_name);
    DBG_PRINT}}
    break;

  case 63:

/* Line 936 of glr.c  */
#line 839 "sql.y"
    {{

      ((*yyvalp).ext_name) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.ext_name);

    DBG_PRINT}}
    break;

  case 64:

/* Line 936 of glr.c  */
#line 848 "sql.y"
    {{

      struct SQL_node_name_t * name = sql_new_name();
      name->name   = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.cptr);
      name->prefix = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.cptr);

      ((*yyvalp).ext_name) = name;
      
    DBG_PRINT}}
    break;

  case 65:

/* Line 936 of glr.c  */
#line 858 "sql.y"
    {{
      struct SQL_node_name_t * name = sql_new_name();
      
      name->name   = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
      
      ((*yyvalp).ext_name) = name;

    DBG_PRINT}}
    break;

  case 66:

/* Line 936 of glr.c  */
#line 870 "sql.y"
    {{

      ((*yyvalp).number) = S_SQL_EMPTY;

    DBG_PRINT}}
    break;

  case 67:

/* Line 936 of glr.c  */
#line 876 "sql.y"
    {{

      ((*yyvalp).number) = S_SQL_VIEW;

    DBG_PRINT}}
    break;

  case 68:

/* Line 936 of glr.c  */
#line 882 "sql.y"
    {{

      ((*yyvalp).number) = S_SQL_TABLE;

    DBG_PRINT}}
    break;

  case 69:

/* Line 936 of glr.c  */
#line 891 "sql.y"
    {{
      ((*yyvalp).node) = NULL;
    DBG_PRINT}}
    break;

  case 70:

/* Line 936 of glr.c  */
#line 896 "sql.y"
    {{
      ((*yyvalp).node) = NULL;
    DBG_PRINT}}
    break;

  case 71:

/* Line 936 of glr.c  */
#line 901 "sql.y"
    {{
      ((*yyvalp).node) = NULL;
    DBG_PRINT}}
    break;

  case 72:

/* Line 936 of glr.c  */
#line 906 "sql.y"
    {{
      ((*yyvalp).node) = NULL;
    DBG_PRINT}}
    break;

  case 73:

/* Line 936 of glr.c  */
#line 911 "sql.y"
    {{
      ((*yyvalp).node) = NULL;
    DBG_PRINT}}
    break;

  case 74:

/* Line 936 of glr.c  */
#line 916 "sql.y"
    {{
      ((*yyvalp).node) = NULL;
    DBG_PRINT}}
    break;

  case 75:

/* Line 936 of glr.c  */
#line 923 "sql.y"
    {{

      ((*yyvalp).number) = 0;

    DBG_PRINT}}
    break;

  case 76:

/* Line 936 of glr.c  */
#line 929 "sql.y"
    {{

      ((*yyvalp).number) = SQL_ATTRIBUTE;

    DBG_PRINT}}
    break;

  case 77:

/* Line 936 of glr.c  */
#line 935 "sql.y"
    {{

      ((*yyvalp).number) = SQL_COLUMN;

    DBG_PRINT}}
    break;

  case 81:

/* Line 936 of glr.c  */
#line 950 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (0);

      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), node);

    DBG_PRINT}}
    break;

  case 82:

/* Line 936 of glr.c  */
#line 957 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (0);
      
      ((*yyvalp).node) = sql_new_list_node_and_add (node);
    DBG_PRINT}}
    break;

  case 83:

/* Line 936 of glr.c  */
#line 966 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 84:

/* Line 936 of glr.c  */
#line 972 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 85:

/* Line 936 of glr.c  */
#line 976 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 86:

/* Line 936 of glr.c  */
#line 982 "sql.y"
    {{

      ((*yyvalp).list).size = 0;

    DBG_PRINT}}
    break;

  case 87:

/* Line 936 of glr.c  */
#line 988 "sql.y"
    {{

      ((*yyvalp).list).size = 0;

    DBG_PRINT}}
    break;

  case 88:

/* Line 936 of glr.c  */
#line 994 "sql.y"
    {{

      ((*yyvalp).list) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.list);

    DBG_PRINT}}
    break;

  case 89:

/* Line 936 of glr.c  */
#line 1004 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 90:

/* Line 936 of glr.c  */
#line 1010 "sql.y"
    {{
    ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 91:

/* Line 936 of glr.c  */
#line 1017 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 92:

/* Line 936 of glr.c  */
#line 1021 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 93:

/* Line 936 of glr.c  */
#line 1025 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 94:

/* Line 936 of glr.c  */
#line 1029 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 95:

/* Line 936 of glr.c  */
#line 1035 "sql.y"
    {{

      ((*yyvalp).ext_name) = NULL;

    DBG_PRINT}}
    break;

  case 96:

/* Line 936 of glr.c  */
#line 1041 "sql.y"
    {{

      ((*yyvalp).ext_name) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.ext_name);

    DBG_PRINT}}
    break;

  case 97:

/* Line 936 of glr.c  */
#line 1047 "sql.y"
    {{

      ((*yyvalp).ext_name) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.ext_name);

    DBG_PRINT}}
    break;

  case 98:

/* Line 936 of glr.c  */
#line 1056 "sql.y"
    {{

      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 99:

/* Line 936 of glr.c  */
#line 1062 "sql.y"
    {{

      ((*yyvalp).node) = sql_new_list_node_and_add ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 100:

/* Line 936 of glr.c  */
#line 1071 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 101:

/* Line 936 of glr.c  */
#line 1077 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 102:

/* Line 936 of glr.c  */
#line 1093 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (S_NODE_UPDATE);
      
      if (node)
      {
        node->dt.update.hints = (int)(((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (8))].yystate.yysemantics.yysval.number);
        node->dt.update.table_name = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (8))].yystate.yysemantics.yysval.ext_name);
        node->dt.update.as_id = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (8))].yystate.yysemantics.yysval.cptr);
        node->dt.update.update_list = (((yyGLRStackItem const *)yyvsp)[YYFILL ((6) - (8))].yystate.yysemantics.yysval.node);
        node->dt.update.where_clause = (((yyGLRStackItem const *)yyvsp)[YYFILL ((7) - (8))].yystate.yysemantics.yysval.node);
        node->dt.update.using_index  = (((yyGLRStackItem const *)yyvsp)[YYFILL ((8) - (8))].yystate.yysemantics.yysval.node);
      };
      
      ((*yyvalp).node) = node;
    DBG_PRINT}}
    break;

  case 103:

/* Line 936 of glr.c  */
#line 1113 "sql.y"
    {{
      ((*yyvalp).node) = NULL;
    DBG_PRINT}}
    break;

  case 104:

/* Line 936 of glr.c  */
#line 1118 "sql.y"
    {{
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 105:

/* Line 936 of glr.c  */
#line 1123 "sql.y"
    {{
      ((*yyvalp).node) = NULL;
    DBG_PRINT}}
    break;

  case 106:

/* Line 936 of glr.c  */
#line 1130 "sql.y"
    {{

      ((*yyvalp).cptr) = NULL;

    DBG_PRINT}}
    break;

  case 107:

/* Line 936 of glr.c  */
#line 1136 "sql.y"
    {{

      ((*yyvalp).cptr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.cptr);

    DBG_PRINT}}
    break;

  case 108:

/* Line 936 of glr.c  */
#line 1142 "sql.y"
    {{

      ((*yyvalp).cptr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);

    DBG_PRINT}}
    break;

  case 109:

/* Line 936 of glr.c  */
#line 1151 "sql.y"
    {{

      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 110:

/* Line 936 of glr.c  */
#line 1157 "sql.y"
    {{

      ((*yyvalp).node) = sql_new_list_node_and_add ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 111:

/* Line 936 of glr.c  */
#line 1166 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 112:

/* Line 936 of glr.c  */
#line 1169 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 113:

/* Line 936 of glr.c  */
#line 1175 "sql.y"
    {{

      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 114:

/* Line 936 of glr.c  */
#line 1181 "sql.y"
    {{

      ((*yyvalp).node) = sql_new_list_node_and_add ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 115:

/* Line 936 of glr.c  */
#line 1196 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 116:

/* Line 936 of glr.c  */
#line 1202 "sql.y"
    {{

      ((*yyvalp).ext_name) = NULL;

    DBG_PRINT}}
    break;

  case 117:

/* Line 936 of glr.c  */
#line 1208 "sql.y"
    {{

      ((*yyvalp).ext_name) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.ext_name);

    DBG_PRINT}}
    break;

  case 118:

/* Line 936 of glr.c  */
#line 1217 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 119:

/* Line 936 of glr.c  */
#line 1221 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 120:

/* Line 936 of glr.c  */
#line 1225 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 121:

/* Line 936 of glr.c  */
#line 1229 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 122:

/* Line 936 of glr.c  */
#line 1235 "sql.y"
    {{

      ((*yyvalp).number) = 0;

    DBG_PRINT}}
    break;

  case 123:

/* Line 936 of glr.c  */
#line 1241 "sql.y"
    {{

      ((*yyvalp).number) = 1;

    DBG_PRINT}}
    break;

  case 124:

/* Line 936 of glr.c  */
#line 1250 "sql.y"
    {{

      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 125:

/* Line 936 of glr.c  */
#line 1256 "sql.y"
    {{

      ((*yyvalp).node) = sql_new_list_node_and_add ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 126:

/* Line 936 of glr.c  */
#line 1265 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 127:

/* Line 936 of glr.c  */
#line 1269 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 128:

/* Line 936 of glr.c  */
#line 1273 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 129:

/* Line 936 of glr.c  */
#line 1277 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 130:

/* Line 936 of glr.c  */
#line 1281 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 131:

/* Line 936 of glr.c  */
#line 1285 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 132:

/* Line 936 of glr.c  */
#line 1289 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 133:

/* Line 936 of glr.c  */
#line 1293 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 134:

/* Line 936 of glr.c  */
#line 1297 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 135:

/* Line 936 of glr.c  */
#line 1301 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 136:

/* Line 936 of glr.c  */
#line 1305 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 137:

/* Line 936 of glr.c  */
#line 1309 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 138:

/* Line 936 of glr.c  */
#line 1313 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 139:

/* Line 936 of glr.c  */
#line 1319 "sql.y"
    {{

      ((*yyvalp).cptr) = NULL;

    DBG_PRINT}}
    break;

  case 140:

/* Line 936 of glr.c  */
#line 1325 "sql.y"
    {{

      ((*yyvalp).cptr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.cptr);

    DBG_PRINT}}
    break;

  case 141:

/* Line 936 of glr.c  */
#line 1334 "sql.y"
    {{

      ((*yyvalp).list).size = 0;

    DBG_PRINT}}
    break;

  case 142:

/* Line 936 of glr.c  */
#line 1340 "sql.y"
    {{

      ((*yyvalp).list) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.list);

    DBG_PRINT}}
    break;

  case 143:

/* Line 936 of glr.c  */
#line 1349 "sql.y"
    {{

      ((*yyvalp).list).size = 0;

    DBG_PRINT}}
    break;

  case 144:

/* Line 936 of glr.c  */
#line 1355 "sql.y"
    {{

      ((*yyvalp).list) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.list);

    DBG_PRINT}}
    break;

  case 145:

/* Line 936 of glr.c  */
#line 1364 "sql.y"
    {{

      ((*yyvalp).node) = NULL;

    DBG_PRINT}}
    break;

  case 146:

/* Line 936 of glr.c  */
#line 1370 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 147:

/* Line 936 of glr.c  */
#line 1379 "sql.y"
    {{

      ((*yyvalp).node) = NULL;

    DBG_PRINT}}
    break;

  case 148:

/* Line 936 of glr.c  */
#line 1385 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 149:

/* Line 936 of glr.c  */
#line 1394 "sql.y"
    {{

      ((*yyvalp).number) = S_WITH_LEVEL_EMPTY;

    DBG_PRINT}}
    break;

  case 150:

/* Line 936 of glr.c  */
#line 1400 "sql.y"
    {{

      ((*yyvalp).number) = S_WITH_LEVEL_LOCAL;

    DBG_PRINT}}
    break;

  case 151:

/* Line 936 of glr.c  */
#line 1406 "sql.y"
    {{

      ((*yyvalp).number) = S_WITH_LEVEL_CASCADED;

    DBG_PRINT}}
    break;

  case 152:

/* Line 936 of glr.c  */
#line 1412 "sql.y"
    {{

      ((*yyvalp).number) = S_WITH_LEVEL_CASCADED;

    DBG_PRINT}}
    break;

  case 153:

/* Line 936 of glr.c  */
#line 1421 "sql.y"
    {{

      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 154:

/* Line 936 of glr.c  */
#line 1427 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 155:

/* Line 936 of glr.c  */
#line 1436 "sql.y"
    {{

      ((*yyvalp).cptr) = NULL;

    DBG_PRINT}}
    break;

  case 156:

/* Line 936 of glr.c  */
#line 1442 "sql.y"
    {{

      ((*yyvalp).cptr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.cptr);

    DBG_PRINT}}
    break;

  case 157:

/* Line 936 of glr.c  */
#line 1451 "sql.y"
    {{

      ((*yyvalp).node) = NULL;

    DBG_PRINT}}
    break;

  case 158:

/* Line 936 of glr.c  */
#line 1458 "sql.y"
    {{

      ((*yyvalp).node) = NULL;

    DBG_PRINT}}
    break;

  case 159:

/* Line 936 of glr.c  */
#line 1465 "sql.y"
    {{

      ((*yyvalp).node) = NULL;

    DBG_PRINT}}
    break;

  case 160:

/* Line 936 of glr.c  */
#line 1472 "sql.y"
    {{

      ((*yyvalp).node) = NULL;

    DBG_PRINT}}
    break;

  case 161:

/* Line 936 of glr.c  */
#line 1481 "sql.y"
    {{
    ((*yyvalp).number) = 0;
    DBG_PRINT}}
    break;

  case 162:

/* Line 936 of glr.c  */
#line 1486 "sql.y"
    {{
      ((*yyvalp).number) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.number);
    DBG_PRINT}}
    break;

  case 163:

/* Line 936 of glr.c  */
#line 1493 "sql.y"
    {{

    ((*yyvalp).number) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.number) | (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.number);

    DBG_PRINT}}
    break;

  case 164:

/* Line 936 of glr.c  */
#line 1500 "sql.y"
    {{

      ((*yyvalp).number) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.number);

    DBG_PRINT}}
    break;

  case 165:

/* Line 936 of glr.c  */
#line 1509 "sql.y"
    {{

      ((*yyvalp).list).size = 0;

    DBG_PRINT}}
    break;

  case 166:

/* Line 936 of glr.c  */
#line 1515 "sql.y"
    {{

      ((*yyvalp).list) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.list);

    DBG_PRINT}}
    break;

  case 167:

/* Line 936 of glr.c  */
#line 1524 "sql.y"
    {{
      ((*yyvalp).number) = 0;
    DBG_PRINT}}
    break;

  case 168:

/* Line 936 of glr.c  */
#line 1528 "sql.y"
    {{
      ((*yyvalp).number) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.number);
      
    DBG_PRINT}}
    break;

  case 169:

/* Line 936 of glr.c  */
#line 1536 "sql.y"
    {{
      ((*yyvalp).number) = S_RULE_DELETE_CASCADE;
    DBG_PRINT}}
    break;

  case 170:

/* Line 936 of glr.c  */
#line 1541 "sql.y"
    {{
      ((*yyvalp).number) = S_RULE_DELETE_NO_ACTION;
    DBG_PRINT}}
    break;

  case 171:

/* Line 936 of glr.c  */
#line 1546 "sql.y"
    {{
      ((*yyvalp).number) = S_RULE_DELETE_RESTRICT;
    DBG_PRINT}}
    break;

  case 172:

/* Line 936 of glr.c  */
#line 1551 "sql.y"
    {{
      ((*yyvalp).number) = S_RULE_UPDATE_NO_ACTION;
    DBG_PRINT}}
    break;

  case 173:

/* Line 936 of glr.c  */
#line 1556 "sql.y"
    {{
      ((*yyvalp).number) = S_RULE_UPDATE_RESTRICT;
    DBG_PRINT}}
    break;

  case 174:

/* Line 936 of glr.c  */
#line 1562 "sql.y"
    {{
      ((*yyvalp).number) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.number) | (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.number);
    DBG_PRINT}}
    break;

  case 175:

/* Line 936 of glr.c  */
#line 1567 "sql.y"
    {{
      ((*yyvalp).number) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.number);
    DBG_PRINT}}
    break;

  case 176:

/* Line 936 of glr.c  */
#line 1575 "sql.y"
    {{
      ((*yyvalp).number) = S_CONSTRAINT_NOT_DEFERRABLE;
    DBG_PRINT}}
    break;

  case 177:

/* Line 936 of glr.c  */
#line 1579 "sql.y"
    {{
      ((*yyvalp).number) = S_CONSTRAINT_DEFERRABLE;
    DBG_PRINT}}
    break;

  case 178:

/* Line 936 of glr.c  */
#line 1583 "sql.y"
    {{
      ((*yyvalp).number) = S_CONSTRAINT_INITIALLY_DEFERRED;
    DBG_PRINT}}
    break;

  case 179:

/* Line 936 of glr.c  */
#line 1587 "sql.y"
    {{
      ((*yyvalp).number) = S_CONSTRAINT_INITIALLY_IMMEDIATE;
    DBG_PRINT}}
    break;

  case 180:

/* Line 936 of glr.c  */
#line 1594 "sql.y"
    {{

      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 181:

/* Line 936 of glr.c  */
#line 1600 "sql.y"
    {{

      ((*yyvalp).node) = sql_new_list_node_and_add ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 182:

/* Line 936 of glr.c  */
#line 1609 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 183:

/* Line 936 of glr.c  */
#line 1615 "sql.y"
    {{
      ((*yyvalp).node) = NULL;
    DBG_PRINT}}
    break;

  case 184:

/* Line 936 of glr.c  */
#line 1622 "sql.y"
    {{

      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 185:

/* Line 936 of glr.c  */
#line 1628 "sql.y"
    {{

      ((*yyvalp).node) = sql_new_list_node_and_add ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 186:

/* Line 936 of glr.c  */
#line 1637 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (S_NODE_FIELD_DEF);
      
      if (node)
      {
      }
      
      ((*yyvalp).node) = node;
    DBG_PRINT}}
    break;

  case 187:

/* Line 936 of glr.c  */
#line 1647 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (S_NODE_FIELD_DEF);
      
      if (node)
      {
        node->dt.field_def.name = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.cptr);
        node->dt.field_def.type = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.number);
      }
      
      ((*yyvalp).node) = node;
    DBG_PRINT}}
    break;

  case 188:

/* Line 936 of glr.c  */
#line 1660 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (S_NODE_FIELD_DEF);
      if (node)
      {
        node->dt.field_def.name = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.cptr);
        node->dt.field_def.type = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.number);
      }
      ((*yyvalp).node) = node;
    DBG_PRINT}}
    break;

  case 189:

/* Line 936 of glr.c  */
#line 1673 "sql.y"
    {{
      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node),(((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node));
    DBG_PRINT}}
    break;

  case 190:

/* Line 936 of glr.c  */
#line 1678 "sql.y"
    {{
      ((*yyvalp).node) = sql_new_list_node_and_add ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node));
    DBG_PRINT}}
    break;

  case 191:

/* Line 936 of glr.c  */
#line 1685 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 192:

/* Line 936 of glr.c  */
#line 1689 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 193:

/* Line 936 of glr.c  */
#line 1693 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 194:

/* Line 936 of glr.c  */
#line 1697 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 195:

/* Line 936 of glr.c  */
#line 1701 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 196:

/* Line 936 of glr.c  */
#line 1712 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 197:

/* Line 936 of glr.c  */
#line 1718 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 198:

/* Line 936 of glr.c  */
#line 1722 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 199:

/* Line 936 of glr.c  */
#line 1726 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 200:

/* Line 936 of glr.c  */
#line 1730 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 201:

/* Line 936 of glr.c  */
#line 1736 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 204:

/* Line 936 of glr.c  */
#line 1747 "sql.y"
    {{
      if ((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node))
      {
        // TODO 
      }
      else
      {
         ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node);
      }
    DBG_PRINT}}
    break;

  case 205:

/* Line 936 of glr.c  */
#line 1761 "sql.y"
    {{
      ((*yyvalp).node) = sql_make_expression ( (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.number), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node), NULL);
    DBG_PRINT}}
    break;

  case 206:

/* Line 936 of glr.c  */
#line 1766 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 207:

/* Line 936 of glr.c  */
#line 1775 "sql.y"
    {{
      
    DBG_PRINT}}
    break;

  case 208:

/* Line 936 of glr.c  */
#line 1780 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 209:

/* Line 936 of glr.c  */
#line 1784 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 210:

/* Line 936 of glr.c  */
#line 1788 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 211:

/* Line 936 of glr.c  */
#line 1794 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 212:

/* Line 936 of glr.c  */
#line 1800 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 213:

/* Line 936 of glr.c  */
#line 1820 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (S_NODE_SELECT);
      
      if (node)
      {
        node->dt.select.hints       = (SQL_HINT_TYPE)(((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (11))].yystate.yysemantics.yysval.number);
        node->dt.select.distinct    = (unsigned)(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (11))].yystate.yysemantics.yysval.number);
        node->dt.select.select_list = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (11))].yystate.yysemantics.yysval.node);
        node->dt.select.to_param    = (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (11))].yystate.yysemantics.yysval.ext_name);
        node->dt.select.spec_list   = (((yyGLRStackItem const *)yyvsp)[YYFILL ((7) - (11))].yystate.yysemantics.yysval.node);
        node->dt.select.where_clause= (((yyGLRStackItem const *)yyvsp)[YYFILL ((8) - (11))].yystate.yysemantics.yysval.node);
        node->dt.select.group_by    = (((yyGLRStackItem const *)yyvsp)[YYFILL ((9) - (11))].yystate.yysemantics.yysval.node);
        node->dt.select.having      = (((yyGLRStackItem const *)yyvsp)[YYFILL ((10) - (11))].yystate.yysemantics.yysval.node);
        node->dt.select.using_index = (((yyGLRStackItem const *)yyvsp)[YYFILL ((11) - (11))].yystate.yysemantics.yysval.node);
      };
      
      ((*yyvalp).node) = node;
    DBG_PRINT}}
    break;

  case 214:

/* Line 936 of glr.c  */
#line 1842 "sql.y"
    {{

      ((*yyvalp).ext_name) = NULL;

    DBG_PRINT}}
    break;

  case 215:

/* Line 936 of glr.c  */
#line 1848 "sql.y"
    {{

      ((*yyvalp).ext_name) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.ext_name);

    DBG_PRINT}}
    break;

  case 216:

/* Line 936 of glr.c  */
#line 1854 "sql.y"
    {{

      ((*yyvalp).ext_name) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.ext_name);

    DBG_PRINT}}
    break;

  case 217:

/* Line 936 of glr.c  */
#line 1863 "sql.y"
    {{
      ((*yyvalp).number) = 0;
    }}
    break;

  case 218:

/* Line 936 of glr.c  */
#line 1868 "sql.y"
    {{
      ((*yyvalp).number) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.number) | (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.number);
    DBG_PRINT}}
    break;

  case 219:

/* Line 936 of glr.c  */
#line 1873 "sql.y"
    {{
    ((*yyvalp).number) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.number);
    DBG_PRINT}}
    break;

  case 220:

/* Line 936 of glr.c  */
#line 1880 "sql.y"
    {{

      ((*yyvalp).number) = 0;

    DBG_PRINT}}
    break;

  case 221:

/* Line 936 of glr.c  */
#line 1886 "sql.y"
    {{

      ((*yyvalp).number) = SQL_ALL;

    DBG_PRINT}}
    break;

  case 222:

/* Line 936 of glr.c  */
#line 1892 "sql.y"
    {{

      ((*yyvalp).number) = SQL_DISTINCT;

    DBG_PRINT}}
    break;

  case 223:

/* Line 936 of glr.c  */
#line 1898 "sql.y"
    {{

      ((*yyvalp).number) = SQL_UNIQUE;

    DBG_PRINT}}
    break;

  case 224:

/* Line 936 of glr.c  */
#line 1907 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (S_NODE_NAME);
      if (node)
      {
        node->dt.name.name = "*";
        node->dt.name.prefix = NULL;
        node->dt.name.flag   = 2;
      };
      ((*yyvalp).node) = node;
    DBG_PRINT}}
    break;

  case 225:

/* Line 936 of glr.c  */
#line 1919 "sql.y"
    {{
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 226:

/* Line 936 of glr.c  */
#line 1926 "sql.y"
    {{
      (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.node)->dt.expr.as_name = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (4))].yystate.yysemantics.yysval.cptr);
      
      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 227:

/* Line 936 of glr.c  */
#line 1934 "sql.y"
    {{

      (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node)->dt.expr.as_name = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.cptr);

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 228:

/* Line 936 of glr.c  */
#line 1945 "sql.y"
    {{

      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 229:

/* Line 936 of glr.c  */
#line 1951 "sql.y"
    {{

      ((*yyvalp).node) = sql_new_list_node_and_add ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 230:

/* Line 936 of glr.c  */
#line 1960 "sql.y"
    {{
      (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.ext_name)->next = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.ext_name);
      ((*yyvalp).ext_name) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.ext_name);

    DBG_PRINT}}
    break;

  case 231:

/* Line 936 of glr.c  */
#line 1966 "sql.y"
    {{

      ((*yyvalp).ext_name) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.ext_name);

    DBG_PRINT}}
    break;

  case 232:

/* Line 936 of glr.c  */
#line 1975 "sql.y"
    {{
      struct SQL_node_name_t * name = sql_new_name();
      if (name)
      {
        name->name = "?";
      }
      ((*yyvalp).ext_name) = name;
    DBG_PRINT}}
    break;

  case 233:

/* Line 936 of glr.c  */
#line 1985 "sql.y"
    {{
      struct SQL_node_name_t * name = sql_new_name();
      if (name)
      {
        name->name = "?:";
        name->flag = (int)(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.number);
      }
      ((*yyvalp).ext_name) = name;
    DBG_PRINT}}
    break;

  case 234:

/* Line 936 of glr.c  */
#line 1996 "sql.y"
    {{
      struct SQL_node_name_t * name = sql_new_name();
      if (name)
      {
        name->name = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.cptr);
      }
      ((*yyvalp).ext_name) = name;
    DBG_PRINT}}
    break;

  case 235:

/* Line 936 of glr.c  */
#line 2006 "sql.y"
    {{
      struct SQL_node_name_t * name = sql_new_name();
      if (name)
      {
        name->name = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
      }
      ((*yyvalp).ext_name) = name;
    DBG_PRINT}}
    break;

  case 236:

/* Line 936 of glr.c  */
#line 2019 "sql.y"
    {{
      ((*yyvalp).number) = -1;
    DBG_PRINT}}
    break;

  case 237:

/* Line 936 of glr.c  */
#line 2023 "sql.y"
    {{
      ((*yyvalp).number) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.number);
    DBG_PRINT}}
    break;

  case 238:

/* Line 936 of glr.c  */
#line 2030 "sql.y"
    {{

      ((*yyvalp).node) = NULL;

    DBG_PRINT}}
    break;

  case 239:

/* Line 936 of glr.c  */
#line 2036 "sql.y"
    {{
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 240:

/* Line 936 of glr.c  */
#line 2043 "sql.y"
    {{

      ((*yyvalp).node) = NULL;

    DBG_PRINT}}
    break;

  case 241:

/* Line 936 of glr.c  */
#line 2049 "sql.y"
    {{
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 242:

/* Line 936 of glr.c  */
#line 2056 "sql.y"
    {{

      ((*yyvalp).node) = NULL;

    DBG_PRINT}}
    break;

  case 243:

/* Line 936 of glr.c  */
#line 2063 "sql.y"
    {{
      
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node);
      
    DBG_PRINT}}
    break;

  case 244:

/* Line 936 of glr.c  */
#line 2072 "sql.y"
    {{

      ((*yyvalp).node) = NULL;

    DBG_PRINT}}
    break;

  case 245:

/* Line 936 of glr.c  */
#line 2078 "sql.y"
    {{

      ((*yyvalp).node) = NULL;

    DBG_PRINT}}
    break;

  case 246:

/* Line 936 of glr.c  */
#line 2085 "sql.y"
    {{

    DBG_PRINT}}
    break;

  case 247:

/* Line 936 of glr.c  */
#line 2090 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 248:

/* Line 936 of glr.c  */
#line 2097 "sql.y"
    {{
       ((*yyvalp).node) = NULL; 
    }}
    break;

  case 249:

/* Line 936 of glr.c  */
#line 2101 "sql.y"
    {{
      
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node);
      
    DBG_PRINT}}
    break;

  case 250:

/* Line 936 of glr.c  */
#line 2107 "sql.y"
    {{
      
      ((*yyvalp).node) = sql_add_node_to_list ( (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (5))].yystate.yysemantics.yysval.node));
      
    DBG_PRINT}}
    break;

  case 251:

/* Line 936 of glr.c  */
#line 2116 "sql.y"
    {{

      ((*yyvalp).node) = sql_add_node_to_list ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 252:

/* Line 936 of glr.c  */
#line 2122 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 253:

/* Line 936 of glr.c  */
#line 2131 "sql.y"
    {{
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 254:

/* Line 936 of glr.c  */
#line 2136 "sql.y"
    {{
      (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node)->dt.expr.asc_flag = 1;
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 255:

/* Line 936 of glr.c  */
#line 2142 "sql.y"
    {{
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 256:

/* Line 936 of glr.c  */
#line 2150 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_PLUS, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node), NULL);

    DBG_PRINT}}
    break;

  case 257:

/* Line 936 of glr.c  */
#line 2156 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_MINUS, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node), NULL);

    DBG_PRINT}}
    break;

  case 258:

/* Line 936 of glr.c  */
#line 2162 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_STRCAT, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node), NULL);

    DBG_PRINT}}
    break;

  case 259:

/* Line 936 of glr.c  */
#line 2168 "sql.y"
    {{
      
      ((*yyvalp).node) = sql_make_expression (S_FUNC_OR, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node), NULL);
      
    DBG_PRINT}}
    break;

  case 260:

/* Line 936 of glr.c  */
#line 2174 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 261:

/* Line 936 of glr.c  */
#line 2183 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_TIMES, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node), NULL);

    DBG_PRINT}}
    break;

  case 262:

/* Line 936 of glr.c  */
#line 2189 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_DIVIDE, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node), NULL);

    DBG_PRINT}}
    break;

  case 263:

/* Line 936 of glr.c  */
#line 2195 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 264:

/* Line 936 of glr.c  */
#line 2204 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 265:

/* Line 936 of glr.c  */
#line 2210 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_UNARY_MINUS, (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node), NULL, NULL);

    DBG_PRINT}}
    break;

  case 266:

/* Line 936 of glr.c  */
#line 2216 "sql.y"
    {{
      ((*yyvalp).node) = sql_make_expression (S_FUNC_PRIOR, (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node), NULL, NULL);
    DBG_PRINT}}
    break;

  case 267:

/* Line 936 of glr.c  */
#line 2223 "sql.y"
    {{
      
    DBG_PRINT}}
    break;

  case 268:

/* Line 936 of glr.c  */
#line 2228 "sql.y"
    {{
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 269:

/* Line 936 of glr.c  */
#line 2233 "sql.y"
    {{
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 270:

/* Line 936 of glr.c  */
#line 2238 "sql.y"
    {{

      SQL_NODE_PTR tmp;
      tmp = sql_make_expression (S_FUNC_EXTRACT, (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (6))].yystate.yysemantics.yysval.node), NULL, NULL);
      ((*yyvalp).node) = tmp;

    DBG_PRINT}}
    break;

  case 271:

/* Line 936 of glr.c  */
#line 2247 "sql.y"
    {{
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 272:

/* Line 936 of glr.c  */
#line 2252 "sql.y"
    {{
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 273:

/* Line 936 of glr.c  */
#line 2257 "sql.y"
    {{
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 274:

/* Line 936 of glr.c  */
#line 2262 "sql.y"
    {{
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 275:

/* Line 936 of glr.c  */
#line 2267 "sql.y"
    {{
      
    DBG_PRINT}}
    break;

  case 276:

/* Line 936 of glr.c  */
#line 2272 "sql.y"
    {{
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 277:

/* Line 936 of glr.c  */
#line 2279 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 278:

/* Line 936 of glr.c  */
#line 2283 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 279:

/* Line 936 of glr.c  */
#line 2292 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 280:

/* Line 936 of glr.c  */
#line 2296 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 281:

/* Line 936 of glr.c  */
#line 2300 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 282:

/* Line 936 of glr.c  */
#line 2304 "sql.y"
    {{

    DBG_PRINT}}
    break;

  case 283:

/* Line 936 of glr.c  */
#line 2309 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 284:

/* Line 936 of glr.c  */
#line 2313 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_POSITION, (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (6))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (6))].yystate.yysemantics.yysval.node), NULL);

    DBG_PRINT}}
    break;

  case 285:

/* Line 936 of glr.c  */
#line 2320 "sql.y"
    {{
      SQL_NODE_PTR node = sql_make_expression (S_FUNC_SUBSTRING, (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (8))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (8))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((7) - (8))].yystate.yysemantics.yysval.node));
      ((*yyvalp).node) = node;
    DBG_PRINT}}
    break;

  case 286:

/* Line 936 of glr.c  */
#line 2326 "sql.y"
    {{
      SQL_NODE_PTR node = sql_make_expression (S_FUNC_SUBSTRING, (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (6))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (6))].yystate.yysemantics.yysval.node), NULL);
      ((*yyvalp).node) = node;
    DBG_PRINT}}
    break;

  case 287:

/* Line 936 of glr.c  */
#line 2332 "sql.y"
    {{
      SQL_NODE_PTR node = sql_make_expression (S_FUNC_TRIM, (((yyGLRStackItem const *)yyvsp)[YYFILL ((6) - (7))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (7))].yystate.yysemantics.yysval.node), NULL);
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 288:

/* Line 936 of glr.c  */
#line 2339 "sql.y"
    {{

      SQL_NODE_PTR node = sql_make_expression (S_FUNC_TRIM, (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (6))].yystate.yysemantics.yysval.node), NULL, NULL);
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 289:

/* Line 936 of glr.c  */
#line 2347 "sql.y"
    {{
      SQL_NODE_PTR node = sql_make_expression (S_FUNC_TRIM, (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (6))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (6))].yystate.yysemantics.yysval.node), NULL);
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 290:

/* Line 936 of glr.c  */
#line 2354 "sql.y"
    {{
      SQL_NODE_PTR node = sql_make_expression (S_FUNC_TRIM, (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.node), NULL, NULL);
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 291:

/* Line 936 of glr.c  */
#line 2361 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 292:

/* Line 936 of glr.c  */
#line 2365 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 293:

/* Line 936 of glr.c  */
#line 2369 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 294:

/* Line 936 of glr.c  */
#line 2373 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 295:

/* Line 936 of glr.c  */
#line 2377 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 296:

/* Line 936 of glr.c  */
#line 2381 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 297:

/* Line 936 of glr.c  */
#line 2385 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_OCTET_LENGTH, (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.node), NULL, NULL);

    DBG_PRINT}}
    break;

  case 298:

/* Line 936 of glr.c  */
#line 2392 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_BIT_LENGTH, (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.node), NULL, NULL);

    DBG_PRINT}}
    break;

  case 299:

/* Line 936 of glr.c  */
#line 2399 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_LOWER, (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.node), NULL, NULL);

    DBG_PRINT}}
    break;

  case 300:

/* Line 936 of glr.c  */
#line 2406 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_UPPER, (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.node), NULL, NULL);

    DBG_PRINT}}
    break;

  case 301:

/* Line 936 of glr.c  */
#line 2413 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_TRANSLATE, (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (8))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (8))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((7) - (8))].yystate.yysemantics.yysval.node));

    DBG_PRINT}}
    break;

  case 302:

/* Line 936 of glr.c  */
#line 2422 "sql.y"
    {{

      ((*yyvalp).number) = S_FUNC_AVG;

    DBG_PRINT}}
    break;

  case 303:

/* Line 936 of glr.c  */
#line 2428 "sql.y"
    {{

      ((*yyvalp).number) = S_FUNC_MAX;

    DBG_PRINT}}
    break;

  case 304:

/* Line 936 of glr.c  */
#line 2434 "sql.y"
    {{

      ((*yyvalp).number) = S_FUNC_MIN;

    DBG_PRINT}}
    break;

  case 305:

/* Line 936 of glr.c  */
#line 2440 "sql.y"
    {{

      ((*yyvalp).number) = S_FUNC_SUM;

    DBG_PRINT}}
    break;

  case 306:

/* Line 936 of glr.c  */
#line 2446 "sql.y"
    {{

      ((*yyvalp).number) = S_FUNC_STDDEV;

    DBG_PRINT}}
    break;

  case 307:

/* Line 936 of glr.c  */
#line 2455 "sql.y"
    {{
      ((*yyvalp).number) = SQL_DISTINCT;
    }}
    break;

  case 308:

/* Line 936 of glr.c  */
#line 2459 "sql.y"
    {{
      ((*yyvalp).number) = SQL_UNIQUE;
    }}
    break;

  case 309:

/* Line 936 of glr.c  */
#line 2466 "sql.y"
    {{

      ((*yyvalp).number) = SQL_LEADING;

    DBG_PRINT}}
    break;

  case 310:

/* Line 936 of glr.c  */
#line 2472 "sql.y"
    {{

      ((*yyvalp).number) = SQL_TRAILING;

    DBG_PRINT}}
    break;

  case 311:

/* Line 936 of glr.c  */
#line 2478 "sql.y"
    {{

      ((*yyvalp).number) = SQL_BOTH;

    DBG_PRINT}}
    break;

  case 312:

/* Line 936 of glr.c  */
#line 2487 "sql.y"
    {{
      ((*yyvalp).node) = sql_make_expression (S_FUNC_NULLIF, (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (6))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (6))].yystate.yysemantics.yysval.node), NULL);
    DBG_PRINT}}
    break;

  case 313:

/* Line 936 of glr.c  */
#line 2492 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 314:

/* Line 936 of glr.c  */
#line 2496 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 315:

/* Line 936 of glr.c  */
#line 2500 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 316:

/* Line 936 of glr.c  */
#line 2506 "sql.y"
    {{

      ((*yyvalp).node) = NULL;

    DBG_PRINT}}
    break;

  case 317:

/* Line 936 of glr.c  */
#line 2512 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 318:

/* Line 936 of glr.c  */
#line 2521 "sql.y"
    {{

      //$$ = sql_add_node_to_list ($1, $2);

    DBG_PRINT}}
    break;

  case 319:

/* Line 936 of glr.c  */
#line 2527 "sql.y"
    {{

      //$$ = sql_new_list_node_and_add ($1);

    DBG_PRINT}}
    break;

  case 320:

/* Line 936 of glr.c  */
#line 2536 "sql.y"
    {{

      //$$ = sql_add_node_to_list ($1, $2);

    DBG_PRINT}}
    break;

  case 321:

/* Line 936 of glr.c  */
#line 2542 "sql.y"
    {{

      //$$ = sql_new_list_node_and_add ($1);

    DBG_PRINT}}
    break;

  case 322:

/* Line 936 of glr.c  */
#line 2551 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_OR, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node), NULL);

    DBG_PRINT}}
    break;

  case 323:

/* Line 936 of glr.c  */
#line 2557 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 324:

/* Line 936 of glr.c  */
#line 2566 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_AND, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node), NULL);

    DBG_PRINT}}
    break;

  case 325:

/* Line 936 of glr.c  */
#line 2572 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 326:

/* Line 936 of glr.c  */
#line 2581 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_NOT, (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node), NULL, NULL);

    DBG_PRINT}}
    break;

  case 327:

/* Line 936 of glr.c  */
#line 2587 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 328:

/* Line 936 of glr.c  */
#line 2596 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression (S_FUNC_EXISTS, (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node), NULL, NULL);

    DBG_PRINT}}
    break;

  case 329:

/* Line 936 of glr.c  */
#line 2602 "sql.y"
    {{

      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);

    DBG_PRINT}}
    break;

  case 330:

/* Line 936 of glr.c  */
#line 2608 "sql.y"
    {{
      ((*yyvalp).node) = sql_make_expression ( (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.number), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node), NULL);
    DBG_PRINT}}
    break;

  case 331:

/* Line 936 of glr.c  */
#line 2613 "sql.y"
    {{
      ((*yyvalp).node) = sql_make_expression ( (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (5))].yystate.yysemantics.yysval.number), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (5))].yystate.yysemantics.yysval.node));
    DBG_PRINT}}
    break;

  case 332:

/* Line 936 of glr.c  */
#line 2618 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression ((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.number), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node), NULL);

    DBG_PRINT}}
    break;

  case 333:

/* Line 936 of glr.c  */
#line 2624 "sql.y"
    {{

      ((*yyvalp).node) = sql_make_expression ((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.number), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), NULL, NULL);

    DBG_PRINT}}
    break;

  case 334:

/* Line 936 of glr.c  */
#line 2630 "sql.y"
    {{
      ((*yyvalp).node) = sql_make_expression ( (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (5))].yystate.yysemantics.yysval.number), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (5))].yystate.yysemantics.yysval.node));
    DBG_PRINT}}
    break;

  case 335:

/* Line 936 of glr.c  */
#line 2634 "sql.y"
    {{
      ((*yyvalp).node) = sql_make_expression ( (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.number), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node), NULL);
    DBG_PRINT}}
    break;

  case 336:

/* Line 936 of glr.c  */
#line 2639 "sql.y"
    {{
      (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node)->dt.expr.as_name = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.cptr);
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 337:

/* Line 936 of glr.c  */
#line 2647 "sql.y"
    {{

      switch ((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.number))
        {
        case 0:
          ((*yyvalp).number) = S_FUNC_EQ;
          break;
        case 1:
          ((*yyvalp).number) = S_FUNC_EQ_ALL;
          break;
        case 2:
          ((*yyvalp).number) = S_FUNC_EQ_SOME;
          break;
        case 3:
          ((*yyvalp).number) = S_FUNC_EQ_SOME;
          break;
        }

    DBG_PRINT}}
    break;

  case 338:

/* Line 936 of glr.c  */
#line 2667 "sql.y"
    {{

      switch ((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.number))
        {
        case 0:
          ((*yyvalp).number) = S_FUNC_NE;
          break;
        case 1:
          ((*yyvalp).number) = S_FUNC_NE_ALL;
          break;
        case 2:
          ((*yyvalp).number) = S_FUNC_NE_SOME;
          break;
        case 3:
          ((*yyvalp).number) = S_FUNC_NE_SOME;
          break;
        }

    DBG_PRINT}}
    break;

  case 339:

/* Line 936 of glr.c  */
#line 2687 "sql.y"
    {{

      switch ((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.number))
        {
        case 0:
          ((*yyvalp).number) = S_FUNC_GT;
          break;
        case 1:
          ((*yyvalp).number) = S_FUNC_GT_ALL;
          break;
        case 2:
          ((*yyvalp).number) = S_FUNC_GT_SOME;
          break;
        case 3:
          ((*yyvalp).number) = S_FUNC_GT_SOME;
          break;
        }

    DBG_PRINT}}
    break;

  case 340:

/* Line 936 of glr.c  */
#line 2707 "sql.y"
    {{

      switch ((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.number))
        {
        case 0:
          ((*yyvalp).number) = S_FUNC_GE;
          break;
        case 1:
          ((*yyvalp).number) = S_FUNC_GE_ALL;
          break;
        case 2:
          ((*yyvalp).number) = S_FUNC_GE_SOME;
          break;
        case 3:
          ((*yyvalp).number) = S_FUNC_GE_SOME;
          break;
        }

    DBG_PRINT}}
    break;

  case 341:

/* Line 936 of glr.c  */
#line 2727 "sql.y"
    {{

      switch ((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.number))
        {
        case 0:
          ((*yyvalp).number) = S_FUNC_LT;
          break;
        case 1:
          ((*yyvalp).number) = S_FUNC_LT_ALL;
          break;
        case 2:
          ((*yyvalp).number) = S_FUNC_LT_SOME;
          break;
        case 3:
          ((*yyvalp).number) = S_FUNC_LT_SOME;
          break;
        }

    DBG_PRINT}}
    break;

  case 342:

/* Line 936 of glr.c  */
#line 2747 "sql.y"
    {{

      switch ((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.number))
        {
        case 0:
          ((*yyvalp).number) = S_FUNC_LE;
          break;
        case 1:
          ((*yyvalp).number) = S_FUNC_LE_ALL;
          break;
        case 2:
          ((*yyvalp).number) = S_FUNC_LE_SOME;
          break;
        case 3:
          ((*yyvalp).number) = S_FUNC_LE_SOME;
          break;
        }

    DBG_PRINT}}
    break;

  case 343:

/* Line 936 of glr.c  */
#line 2767 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 344:

/* Line 936 of glr.c  */
#line 2770 "sql.y"
    {{
    DBG_PRINT}}
    break;

  case 345:

/* Line 936 of glr.c  */
#line 2776 "sql.y"
    {{

      ((*yyvalp).number) = 0;

    DBG_PRINT}}
    break;

  case 346:

/* Line 936 of glr.c  */
#line 2782 "sql.y"
    {{

      ((*yyvalp).number) = 1;

    DBG_PRINT}}
    break;

  case 347:

/* Line 936 of glr.c  */
#line 2788 "sql.y"
    {{

      ((*yyvalp).number) = 2;

    DBG_PRINT}}
    break;

  case 348:

/* Line 936 of glr.c  */
#line 2794 "sql.y"
    {{

      ((*yyvalp).number) = 3;

    DBG_PRINT}}
    break;

  case 349:

/* Line 936 of glr.c  */
#line 2803 "sql.y"
    {{

      ((*yyvalp).number) = S_FUNC_NOT_LIKE;

    DBG_PRINT}}
    break;

  case 350:

/* Line 936 of glr.c  */
#line 2809 "sql.y"
    {{

      ((*yyvalp).number) = S_FUNC_LIKE;

    DBG_PRINT}}
    break;

  case 351:

/* Line 936 of glr.c  */
#line 2818 "sql.y"
    {{

      ((*yyvalp).number) = S_FUNC_IS_NOT_NULL;

    DBG_PRINT}}
    break;

  case 352:

/* Line 936 of glr.c  */
#line 2824 "sql.y"
    {{

      ((*yyvalp).number) = S_FUNC_IS_NULL;

    DBG_PRINT}}
    break;

  case 353:

/* Line 936 of glr.c  */
#line 2834 "sql.y"
    {{

      ((*yyvalp).number) = S_FUNC_NOT_BETWEEN;

    DBG_PRINT}}
    break;

  case 354:

/* Line 936 of glr.c  */
#line 2840 "sql.y"
    {{

      ((*yyvalp).number) = S_FUNC_BETWEEN;

    DBG_PRINT}}
    break;

  case 355:

/* Line 936 of glr.c  */
#line 2849 "sql.y"
    {{

      ((*yyvalp).number) = S_FUNC_IS_IN;

    DBG_PRINT}}
    break;

  case 356:

/* Line 936 of glr.c  */
#line 2855 "sql.y"
    {{

      ((*yyvalp).number) = S_FUNC_IS_NOT_IN;

    DBG_PRINT}}
    break;

  case 357:

/* Line 936 of glr.c  */
#line 2864 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (S_NODE_NAME);
      
      if (node)
      {
        node->dt.name.name = "*";
        node->dt.name.prefix = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.cptr);
      }
      
      ((*yyvalp).node) = node;
    }}
    break;

  case 358:

/* Line 936 of glr.c  */
#line 2876 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (S_NODE_NAME);
      
      if (node)
      {
        node->dt.name.name = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.cptr);
        node->dt.name.prefix = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.cptr);
      }
      
      ((*yyvalp).node) = node;
    }}
    break;

  case 359:

/* Line 936 of glr.c  */
#line 2888 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (S_NODE_NAME);
      
      if (node)
      {
        node->dt.name.name = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
        node->dt.name.prefix = NULL;
      }
      
      ((*yyvalp).node) = node;
    }}
    break;

  case 360:

/* Line 936 of glr.c  */
#line 2900 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (S_NODE_NAME);
      
      if (node)
      {
        node->dt.name.name   = "*";
        node->dt.name.prefix = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (4))].yystate.yysemantics.yysval.cptr);
      }
      
      ((*yyvalp).node) = node;
    }}
    break;

  case 361:

/* Line 936 of glr.c  */
#line 2912 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (S_NODE_NAME);
      
      if (node)
      {
        node->dt.name.name = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (4))].yystate.yysemantics.yysval.cptr);
        node->dt.name.prefix = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (4))].yystate.yysemantics.yysval.cptr);
      }
      
      ((*yyvalp).node) = node;
    }}
    break;

  case 362:

/* Line 936 of glr.c  */
#line 2924 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (S_NODE_NAME);
      
      if (node)
      {
        node->dt.name.name = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.cptr);
        node->dt.name.prefix = NULL;
      }
      
      ((*yyvalp).node) = node;
    }}
    break;

  case 363:

/* Line 936 of glr.c  */
#line 2939 "sql.y"
    {{

      ((*yyvalp).number) = 0;

    DBG_PRINT}}
    break;

  case 364:

/* Line 936 of glr.c  */
#line 2945 "sql.y"
    {{

      ((*yyvalp).number) = 1;

    DBG_PRINT}}
    break;

  case 365:

/* Line 936 of glr.c  */
#line 2954 "sql.y"
    {{
      ((*yyvalp).number) = LN_VT_INT32;
    DBG_PRINT}}
    break;

  case 366:

/* Line 936 of glr.c  */
#line 2959 "sql.y"
    {{      
      ((*yyvalp).number) = LN_VT_INT32;
    DBG_PRINT}}
    break;

  case 367:

/* Line 936 of glr.c  */
#line 2964 "sql.y"
    {{
      ((*yyvalp).number) = LN_VT_DOUBLE;
    DBG_PRINT}}
    break;

  case 368:

/* Line 936 of glr.c  */
#line 2969 "sql.y"
    {{
      ((*yyvalp).number) = LN_VT_DOUBLE;
    DBG_PRINT}}
    break;

  case 369:

/* Line 936 of glr.c  */
#line 2974 "sql.y"
    {{
      ((*yyvalp).number) = LN_VT_DATE;
    DBG_PRINT}}
    break;

  case 370:

/* Line 936 of glr.c  */
#line 2979 "sql.y"
    {{
      ((*yyvalp).number) = LN_VT_TIME;
    DBG_PRINT}}
    break;

  case 371:

/* Line 936 of glr.c  */
#line 2984 "sql.y"
    {{
      ((*yyvalp).number) = LN_VT_TIMESTAMP;
    DBG_PRINT}}
    break;

  case 372:

/* Line 936 of glr.c  */
#line 2989 "sql.y"
    {{
      ((*yyvalp).number) = LN_VT_DATETIME;
    DBG_PRINT}}
    break;

  case 373:

/* Line 936 of glr.c  */
#line 2994 "sql.y"
    {{
      ((*yyvalp).number) = LN_VT_STRING | ( ((LN_INT64)(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.number)) << 32 );
    DBG_PRINT}}
    break;

  case 374:

/* Line 936 of glr.c  */
#line 2999 "sql.y"
    {{
      ((*yyvalp).number) = LN_VT_STRING | ( ((LN_INT64)(((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.number)) << 32 );
    DBG_PRINT}}
    break;

  case 375:

/* Line 936 of glr.c  */
#line 3004 "sql.y"
    {{
      ((*yyvalp).number) = LN_VT_STRING | ( ((LN_INT64)(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.number)) << 32 );
    DBG_PRINT}}
    break;

  case 376:

/* Line 936 of glr.c  */
#line 3009 "sql.y"
    {{
      ((*yyvalp).number) = LN_VT_STRING | ( ((LN_INT64)(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.number)) << 32 );
    DBG_PRINT}}
    break;

  case 377:

/* Line 936 of glr.c  */
#line 3014 "sql.y"
    {{
      ((*yyvalp).number) = LN_VT_STRING | ( ((LN_INT64)(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.number)) << 32 );
    DBG_PRINT}}
    break;

  case 378:

/* Line 936 of glr.c  */
#line 3019 "sql.y"
    {{
      ((*yyvalp).number) = LN_VT_INT32 | ( ((LN_INT64)(((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.number)) << 32 );
    DBG_PRINT}}
    break;

  case 379:

/* Line 936 of glr.c  */
#line 3024 "sql.y"
    {{
      ((*yyvalp).number) = LN_VT_DOUBLE | ( ((LN_INT64)(((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.number)) << 32 ); 
    DBG_PRINT}}
    break;

  case 380:

/* Line 936 of glr.c  */
#line 3031 "sql.y"
    {{

      ((*yyvalp).number) = 0;

    DBG_PRINT}}
    break;

  case 381:

/* Line 936 of glr.c  */
#line 3037 "sql.y"
    {{

      if ((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.number) > 0xFFFF )
      {
        // TODO Error Handling
      };
      
      ((*yyvalp).number) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.number);

    DBG_PRINT}}
    break;

  case 382:

/* Line 936 of glr.c  */
#line 3052 "sql.y"
    {{
      ((*yyvalp).number) = 0;
    DBG_PRINT}}
    break;

  case 383:

/* Line 936 of glr.c  */
#line 3056 "sql.y"
    {{
      if ((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.number) > 0xFFFF)
      {
        // TODO Error Handling
      };
      
      ((*yyvalp).number) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.number);
    DBG_PRINT}}
    break;

  case 384:

/* Line 936 of glr.c  */
#line 3065 "sql.y"
    {{
      if ((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (5))].yystate.yysemantics.yysval.number) > 0xFFFF || (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (5))].yystate.yysemantics.yysval.number) > 0xFFFF)
      {
          // TODO Error Handling
      };
      
      ((*yyvalp).number) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (5))].yystate.yysemantics.yysval.number) | ( ((LN_INT64)(((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (5))].yystate.yysemantics.yysval.number)) << 16 );
    DBG_PRINT}}
    break;

  case 385:

/* Line 936 of glr.c  */
#line 3077 "sql.y"
    {{
      SQL_NODE_PTR node;
      
      node = sql_new_node (S_NODE_VALUE);
      
      if (node)
      {
        if ( ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.number) >> 32) == 0 )
        {
          node->dt.value.vt = LN_VT_UINT32;
          node->dt.value.dt.intval = (int)(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.number);
        }
        else
        {
          node->dt.value.vt = LN_VT_UINT64;
          node->dt.value.dt.i64val = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.number);
        }
      }
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 386:

/* Line 936 of glr.c  */
#line 3100 "sql.y"
    {{

      SQL_NODE_PTR node;
      
      node = sql_new_node (S_NODE_VALUE);
      
      if (node)
      {
        node->dt.value.vt = LN_VT_DOUBLE;
        node->dt.value.dt.realval = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.real_num);
      }
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 387:

/* Line 936 of glr.c  */
#line 3116 "sql.y"
    {{

      SQL_NODE_PTR node;
      
      node = sql_new_node (S_NODE_VALUE);
      
      if (node)
      {
        node->dt.value.vt = LN_VT_MONETARY;
        node->dt.value.dt.realval = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.real_num);
      }
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 388:

/* Line 936 of glr.c  */
#line 3132 "sql.y"
    {{

      SQL_NODE_PTR node;
      
      node = sql_new_node (S_NODE_VALUE);
      
      if (node)
      {
        node->dt.value.vt = LN_VT_STRING;
        node->dt.value.dt.string.val = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
      }
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 389:

/* Line 936 of glr.c  */
#line 3148 "sql.y"
    {{

      SQL_NODE_PTR node;
      
      node = sql_new_node (S_NODE_VALUE);
      
      if (node)
      {
        node->dt.value.vt = LN_VT_STRING;
        node->dt.value.dt.string.val = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
      }
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 390:

/* Line 936 of glr.c  */
#line 3164 "sql.y"
    {{
      
      SQL_NODE_PTR node = sql_new_node(S_NODE_NAME);
      if (node)
      {
        node->dt.name.name = "?:";
        node->dt.name.flag = (int)(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.number);
      }
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 391:

/* Line 936 of glr.c  */
#line 3177 "sql.y"
    {{
      SQL_NODE_PTR node;
      
      node = sql_new_node (S_NODE_VALUE);
      
      if (node)
      {
        node->dt.value.vt = LN_VT_NULL;
      }
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 392:

/* Line 936 of glr.c  */
#line 3191 "sql.y"
    {{
      ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node);
    DBG_PRINT}}
    break;

  case 393:

/* Line 936 of glr.c  */
#line 3200 "sql.y"
    {{

      ((*yyvalp).cptr) = NULL;

    DBG_PRINT}}
    break;

  case 394:

/* Line 936 of glr.c  */
#line 3206 "sql.y"
    {{

      ((*yyvalp).cptr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);

    DBG_PRINT}}
    break;

  case 395:

/* Line 936 of glr.c  */
#line 3215 "sql.y"
    {{

      sql_string_list_add ( (SQL_STRING_LIST*)&((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.list)), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.cptr));
      
      ((*yyvalp).list) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.list);

    DBG_PRINT}}
    break;

  case 396:

/* Line 936 of glr.c  */
#line 3223 "sql.y"
    {{

      ((*yyvalp).list).size = 0;
      
      sql_string_list_add (&((*yyvalp).list), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr));

    DBG_PRINT}}
    break;

  case 397:

/* Line 936 of glr.c  */
#line 3234 "sql.y"
    {{
      ((*yyvalp).cptr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
    DBG_PRINT}}
    break;

  case 398:

/* Line 936 of glr.c  */
#line 3239 "sql.y"
    {{
      ((*yyvalp).cptr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
    DBG_PRINT}}
    break;

  case 399:

/* Line 936 of glr.c  */
#line 3244 "sql.y"
    {{
      ((*yyvalp).cptr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
    DBG_PRINT}}
    break;

  case 400:

/* Line 936 of glr.c  */
#line 3249 "sql.y"
    {{
      ((*yyvalp).cptr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
    DBG_PRINT}}
    break;

  case 401:

/* Line 936 of glr.c  */
#line 3254 "sql.y"
    {{
      ((*yyvalp).cptr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
    DBG_PRINT}}
    break;

  case 402:

/* Line 936 of glr.c  */
#line 3261 "sql.y"
    {{

      SQL_NODE_PTR node = sql_new_node (S_NODE_VALUE);
      
      if (node)
      {
        node->dt.value.vt = LN_VT_STRING;
        node->dt.value.dt.string.val = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
        node->dt.value.dt.string.buf_size = 0;
        node->dt.value.dt.string.size =0;
      }
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 403:

/* Line 936 of glr.c  */
#line 3277 "sql.y"
    {{
      SQL_NODE_PTR node = sql_new_node (S_NODE_VALUE);
      
      if (node)
      {
        node->dt.value.vt = LN_VT_INT32;
        node->dt.value.dt.intval = (int)(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.number);
      }
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 404:

/* Line 936 of glr.c  */
#line 3294 "sql.y"
    {{
      ((*yyvalp).cptr) = sql_strcat ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.cptr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.cptr), NULL);
    DBG_PRINT}}
    break;

  case 405:

/* Line 936 of glr.c  */
#line 3298 "sql.y"
    {{
      ((*yyvalp).cptr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
    DBG_PRINT}}
    break;

  case 406:

/* Line 936 of glr.c  */
#line 3302 "sql.y"
    {{
      ((*yyvalp).cptr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
    DBG_PRINT}}
    break;

  case 407:

/* Line 936 of glr.c  */
#line 3310 "sql.y"
    {{
      ((*yyvalp).cptr) = sql_strcat ((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.cptr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.cptr), NULL);
    DBG_PRINT}}
    break;

  case 408:

/* Line 936 of glr.c  */
#line 3314 "sql.y"
    {{
      ((*yyvalp).cptr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
    DBG_PRINT}}
    break;

  case 409:

/* Line 936 of glr.c  */
#line 3318 "sql.y"
    {{
      ((*yyvalp).cptr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.cptr);
    DBG_PRINT}}
    break;

  case 410:

/* Line 936 of glr.c  */
#line 3326 "sql.y"
    {{
      ((*yyvalp).real_num) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.real_num);
    DBG_PRINT}}
    break;

  case 411:

/* Line 936 of glr.c  */
#line 3330 "sql.y"
    {{
      ((*yyvalp).real_num) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.real_num);
    DBG_PRINT}}
    break;

  case 412:

/* Line 936 of glr.c  */
#line 3337 "sql.y"
    {{

      ((*yyvalp).real_num) = (double) (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.number);

    DBG_PRINT}}
    break;

  case 413:

/* Line 936 of glr.c  */
#line 3343 "sql.y"
    {{

      ((*yyvalp).real_num) = - (double)(((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.number);

    DBG_PRINT}}
    break;

  case 414:

/* Line 936 of glr.c  */
#line 3350 "sql.y"
    {{

      ((*yyvalp).real_num) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.real_num);

    DBG_PRINT}}
    break;

  case 415:

/* Line 936 of glr.c  */
#line 3356 "sql.y"
    {{

      ((*yyvalp).real_num) = - (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.real_num);

    DBG_PRINT}}
    break;

  case 416:

/* Line 936 of glr.c  */
#line 3365 "sql.y"
    {{
      SQL_NODE_PTR node;
      
      node = sql_new_node (S_NODE_VALUE);
      
      if (node)
      {
        node->dt.value.vt = LN_VT_DATE;
      }
      
      ((*yyvalp).node) = node;

    DBG_PRINT}}
    break;

  case 417:

/* Line 936 of glr.c  */
#line 3379 "sql.y"
    {{
      SQL_NODE_PTR node;
      
      node = sql_new_node (S_NODE_VALUE);
      
      if (node)
      {
        node->dt.value.vt = LN_VT_TIME;
      }
      
      ((*yyvalp).node) = node;
    DBG_PRINT}}
    break;

  case 418:

/* Line 936 of glr.c  */
#line 3392 "sql.y"
    {{
      SQL_NODE_PTR node;
      
      node = sql_new_node (S_NODE_VALUE);
      
      if (node)
      {
        node->dt.value.vt = LN_VT_TIMESTAMP;
      }
      
      ((*yyvalp).node) = node;
    DBG_PRINT}}
    break;

  case 419:

/* Line 936 of glr.c  */
#line 3405 "sql.y"
    {{
      SQL_NODE_PTR node;
      
      node = sql_new_node (S_NODE_VALUE);
      
      if (node)
      {
        node->dt.value.vt = LN_VT_DATETIME;
      }
      
      ((*yyvalp).node) = node;
    DBG_PRINT}}
    break;



/* Line 936 of glr.c  */
#line 6408 "sql_y.c"
      default: break;
    }

  return yyok;
# undef yyerrok
# undef YYABORT
# undef YYACCEPT
# undef YYERROR
# undef YYBACKUP
# undef yyclearin
# undef YYRECOVERING
}


/*ARGSUSED*/ static void
yyuserMerge (int yyn, YYSTYPE* yy0, YYSTYPE* yy1)
{
  YYUSE (yy0);
  YYUSE (yy1);

  switch (yyn)
    {
      
      default: break;
    }
}

			      /* Bison grammar-table manipulation.  */

/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/

/*ARGSUSED*/
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp)
{
  YYUSE (yyvaluep);
  YYUSE (yylocationp);

  if (!yymsg)
    yymsg = "Deleting";
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);

  switch (yytype)
    {

      default:
	break;
    }
}

/** Number of symbols composing the right hand side of rule #RULE.  */
static inline int
yyrhsLength (yyRuleNum yyrule)
{
  return yyr2[yyrule];
}

static void
yydestroyGLRState (char const *yymsg, yyGLRState *yys)
{
  if (yys->yyresolved)
    yydestruct (yymsg, yystos[yys->yylrState],
		&yys->yysemantics.yysval, &yys->yyloc);
  else
    {
#if YYDEBUG
      if (yydebug)
	{
	  if (yys->yysemantics.yyfirstVal)
	    YYFPRINTF (stderr, "%s unresolved ", yymsg);
	  else
	    YYFPRINTF (stderr, "%s incomplete ", yymsg);
	  yy_symbol_print (stderr, yystos[yys->yylrState],
			   NULL, &yys->yyloc);
	  YYFPRINTF (stderr, "\n");
	}
#endif

      if (yys->yysemantics.yyfirstVal)
	{
	  yySemanticOption *yyoption = yys->yysemantics.yyfirstVal;
	  yyGLRState *yyrh;
	  int yyn;
	  for (yyrh = yyoption->yystate, yyn = yyrhsLength (yyoption->yyrule);
	       yyn > 0;
	       yyrh = yyrh->yypred, yyn -= 1)
	    yydestroyGLRState (yymsg, yyrh);
	}
    }
}

/** Left-hand-side symbol for rule #RULE.  */
static inline yySymbol
yylhsNonterm (yyRuleNum yyrule)
{
  return yyr1[yyrule];
}

#define yyis_pact_ninf(yystate) \
  ((yystate) == YYPACT_NINF)

/** True iff LR state STATE has only a default reduction (regardless
 *  of token).  */
static inline yybool
yyisDefaultedState (yyStateNum yystate)
{
  return yyis_pact_ninf (yypact[yystate]);
}

/** The default reduction for STATE, assuming it has one.  */
static inline yyRuleNum
yydefaultAction (yyStateNum yystate)
{
  return yydefact[yystate];
}

#define yyis_table_ninf(yytable_value) \
  YYID (0)

/** Set *YYACTION to the action to take in YYSTATE on seeing YYTOKEN.
 *  Result R means
 *    R < 0:  Reduce on rule -R.
 *    R = 0:  Error.
 *    R > 0:  Shift to state R.
 *  Set *CONFLICTS to a pointer into yyconfl to 0-terminated list of
 *  conflicting reductions.
 */
static inline void
yygetLRActions (yyStateNum yystate, int yytoken,
		int* yyaction, const short int** yyconflicts)
{
  int yyindex = yypact[yystate] + yytoken;
  if (yyindex < 0 || YYLAST < yyindex || yycheck[yyindex] != yytoken)
    {
      *yyaction = -yydefact[yystate];
      *yyconflicts = yyconfl;
    }
  else if (! yyis_table_ninf (yytable[yyindex]))
    {
      *yyaction = yytable[yyindex];
      *yyconflicts = yyconfl + yyconflp[yyindex];
    }
  else
    {
      *yyaction = 0;
      *yyconflicts = yyconfl + yyconflp[yyindex];
    }
}

static inline yyStateNum
yyLRgotoState (yyStateNum yystate, yySymbol yylhs)
{
  int yyr;
  yyr = yypgoto[yylhs - YYNTOKENS] + yystate;
  if (0 <= yyr && yyr <= YYLAST && yycheck[yyr] == yystate)
    return yytable[yyr];
  else
    return yydefgoto[yylhs - YYNTOKENS];
}

static inline yybool
yyisShiftAction (int yyaction)
{
  return 0 < yyaction;
}

static inline yybool
yyisErrorAction (int yyaction)
{
  return yyaction == 0;
}

				/* GLRStates */

/** Return a fresh GLRStackItem.  Callers should call
 * YY_RESERVE_GLRSTACK afterwards to make sure there is sufficient
 * headroom.  */

static inline yyGLRStackItem*
yynewGLRStackItem (yyGLRStack* yystackp, yybool yyisState)
{
  yyGLRStackItem* yynewItem = yystackp->yynextFree;
  yystackp->yyspaceLeft -= 1;
  yystackp->yynextFree += 1;
  yynewItem->yystate.yyisState = yyisState;
  return yynewItem;
}

/** Add a new semantic action that will execute the action for rule
 *  RULENUM on the semantic values in RHS to the list of
 *  alternative actions for STATE.  Assumes that RHS comes from
 *  stack #K of *STACKP. */
static void
yyaddDeferredAction (yyGLRStack* yystackp, size_t yyk, yyGLRState* yystate,
		     yyGLRState* rhs, yyRuleNum yyrule)
{
  yySemanticOption* yynewOption =
    &yynewGLRStackItem (yystackp, yyfalse)->yyoption;
  yynewOption->yystate = rhs;
  yynewOption->yyrule = yyrule;
  if (yystackp->yytops.yylookaheadNeeds[yyk])
    {
      yynewOption->yyrawchar = yychar;
      yynewOption->yyval = yylval;
      yynewOption->yyloc = yylloc;
    }
  else
    yynewOption->yyrawchar = YYEMPTY;
  yynewOption->yynext = yystate->yysemantics.yyfirstVal;
  yystate->yysemantics.yyfirstVal = yynewOption;

  YY_RESERVE_GLRSTACK (yystackp);
}

				/* GLRStacks */

/** Initialize SET to a singleton set containing an empty stack.  */
static yybool
yyinitStateSet (yyGLRStateSet* yyset)
{
  yyset->yysize = 1;
  yyset->yycapacity = 16;
  yyset->yystates = (yyGLRState**) YYMALLOC (16 * sizeof yyset->yystates[0]);
  if (! yyset->yystates)
    return yyfalse;
  yyset->yystates[0] = NULL;
  yyset->yylookaheadNeeds =
    (yybool*) YYMALLOC (16 * sizeof yyset->yylookaheadNeeds[0]);
  if (! yyset->yylookaheadNeeds)
    {
      YYFREE (yyset->yystates);
      return yyfalse;
    }
  return yytrue;
}

static void yyfreeStateSet (yyGLRStateSet* yyset)
{
  YYFREE (yyset->yystates);
  YYFREE (yyset->yylookaheadNeeds);
}

/** Initialize STACK to a single empty stack, with total maximum
 *  capacity for all stacks of SIZE.  */
static yybool
yyinitGLRStack (yyGLRStack* yystackp, size_t yysize)
{
  yystackp->yyerrState = 0;
  yynerrs = 0;
  yystackp->yyspaceLeft = yysize;
  yystackp->yyitems =
    (yyGLRStackItem*) YYMALLOC (yysize * sizeof yystackp->yynextFree[0]);
  if (!yystackp->yyitems)
    return yyfalse;
  yystackp->yynextFree = yystackp->yyitems;
  yystackp->yysplitPoint = NULL;
  yystackp->yylastDeleted = NULL;
  return yyinitStateSet (&yystackp->yytops);
}


#if YYSTACKEXPANDABLE
# define YYRELOC(YYFROMITEMS,YYTOITEMS,YYX,YYTYPE) \
  &((YYTOITEMS) - ((YYFROMITEMS) - (yyGLRStackItem*) (YYX)))->YYTYPE

/** If STACK is expandable, extend it.  WARNING: Pointers into the
    stack from outside should be considered invalid after this call.
    We always expand when there are 1 or fewer items left AFTER an
    allocation, so that we can avoid having external pointers exist
    across an allocation.  */
static void
yyexpandGLRStack (yyGLRStack* yystackp)
{
  yyGLRStackItem* yynewItems;
  yyGLRStackItem* yyp0, *yyp1;
  size_t yysize, yynewSize;
  size_t yyn;
  yysize = yystackp->yynextFree - yystackp->yyitems;
  if (YYMAXDEPTH - YYHEADROOM < yysize)
    yyMemoryExhausted (yystackp);
  yynewSize = 2*yysize;
  if (YYMAXDEPTH < yynewSize)
    yynewSize = YYMAXDEPTH;
  yynewItems = (yyGLRStackItem*) YYMALLOC (yynewSize * sizeof yynewItems[0]);
  if (! yynewItems)
    yyMemoryExhausted (yystackp);
  for (yyp0 = yystackp->yyitems, yyp1 = yynewItems, yyn = yysize;
       0 < yyn;
       yyn -= 1, yyp0 += 1, yyp1 += 1)
    {
      *yyp1 = *yyp0;
      if (*(yybool *) yyp0)
	{
	  yyGLRState* yys0 = &yyp0->yystate;
	  yyGLRState* yys1 = &yyp1->yystate;
	  if (yys0->yypred != NULL)
	    yys1->yypred =
	      YYRELOC (yyp0, yyp1, yys0->yypred, yystate);
	  if (! yys0->yyresolved && yys0->yysemantics.yyfirstVal != NULL)
	    yys1->yysemantics.yyfirstVal =
	      YYRELOC(yyp0, yyp1, yys0->yysemantics.yyfirstVal, yyoption);
	}
      else
	{
	  yySemanticOption* yyv0 = &yyp0->yyoption;
	  yySemanticOption* yyv1 = &yyp1->yyoption;
	  if (yyv0->yystate != NULL)
	    yyv1->yystate = YYRELOC (yyp0, yyp1, yyv0->yystate, yystate);
	  if (yyv0->yynext != NULL)
	    yyv1->yynext = YYRELOC (yyp0, yyp1, yyv0->yynext, yyoption);
	}
    }
  if (yystackp->yysplitPoint != NULL)
    yystackp->yysplitPoint = YYRELOC (yystackp->yyitems, yynewItems,
				 yystackp->yysplitPoint, yystate);

  for (yyn = 0; yyn < yystackp->yytops.yysize; yyn += 1)
    if (yystackp->yytops.yystates[yyn] != NULL)
      yystackp->yytops.yystates[yyn] =
	YYRELOC (yystackp->yyitems, yynewItems,
		 yystackp->yytops.yystates[yyn], yystate);
  YYFREE (yystackp->yyitems);
  yystackp->yyitems = yynewItems;
  yystackp->yynextFree = yynewItems + yysize;
  yystackp->yyspaceLeft = yynewSize - yysize;
}
#endif

static void
yyfreeGLRStack (yyGLRStack* yystackp)
{
  YYFREE (yystackp->yyitems);
  yyfreeStateSet (&yystackp->yytops);
}

/** Assuming that S is a GLRState somewhere on STACK, update the
 *  splitpoint of STACK, if needed, so that it is at least as deep as
 *  S.  */
static inline void
yyupdateSplit (yyGLRStack* yystackp, yyGLRState* yys)
{
  if (yystackp->yysplitPoint != NULL && yystackp->yysplitPoint > yys)
    yystackp->yysplitPoint = yys;
}

/** Invalidate stack #K in STACK.  */
static inline void
yymarkStackDeleted (yyGLRStack* yystackp, size_t yyk)
{
  if (yystackp->yytops.yystates[yyk] != NULL)
    yystackp->yylastDeleted = yystackp->yytops.yystates[yyk];
  yystackp->yytops.yystates[yyk] = NULL;
}

/** Undelete the last stack that was marked as deleted.  Can only be
    done once after a deletion, and only when all other stacks have
    been deleted.  */
static void
yyundeleteLastStack (yyGLRStack* yystackp)
{
  if (yystackp->yylastDeleted == NULL || yystackp->yytops.yysize != 0)
    return;
  yystackp->yytops.yystates[0] = yystackp->yylastDeleted;
  yystackp->yytops.yysize = 1;
  YYDPRINTF ((stderr, "Restoring last deleted stack as stack #0.\n"));
  yystackp->yylastDeleted = NULL;
}

static inline void
yyremoveDeletes (yyGLRStack* yystackp)
{
  size_t yyi, yyj;
  yyi = yyj = 0;
  while (yyj < yystackp->yytops.yysize)
    {
      if (yystackp->yytops.yystates[yyi] == NULL)
	{
	  if (yyi == yyj)
	    {
	      YYDPRINTF ((stderr, "Removing dead stacks.\n"));
	    }
	  yystackp->yytops.yysize -= 1;
	}
      else
	{
	  yystackp->yytops.yystates[yyj] = yystackp->yytops.yystates[yyi];
	  /* In the current implementation, it's unnecessary to copy
	     yystackp->yytops.yylookaheadNeeds[yyi] since, after
	     yyremoveDeletes returns, the parser immediately either enters
	     deterministic operation or shifts a token.  However, it doesn't
	     hurt, and the code might evolve to need it.  */
	  yystackp->yytops.yylookaheadNeeds[yyj] =
	    yystackp->yytops.yylookaheadNeeds[yyi];
	  if (yyj != yyi)
	    {
	      YYDPRINTF ((stderr, "Rename stack %lu -> %lu.\n",
			  (unsigned long int) yyi, (unsigned long int) yyj));
	    }
	  yyj += 1;
	}
      yyi += 1;
    }
}

/** Shift to a new state on stack #K of STACK, corresponding to LR state
 * LRSTATE, at input position POSN, with (resolved) semantic value SVAL.  */
static inline void
yyglrShift (yyGLRStack* yystackp, size_t yyk, yyStateNum yylrState,
	    size_t yyposn,
	    YYSTYPE* yyvalp, YYLTYPE* yylocp)
{
  yyGLRState* yynewState = &yynewGLRStackItem (yystackp, yytrue)->yystate;

  yynewState->yylrState = yylrState;
  yynewState->yyposn = yyposn;
  yynewState->yyresolved = yytrue;
  yynewState->yypred = yystackp->yytops.yystates[yyk];
  yynewState->yysemantics.yysval = *yyvalp;
  yynewState->yyloc = *yylocp;
  yystackp->yytops.yystates[yyk] = yynewState;

  YY_RESERVE_GLRSTACK (yystackp);
}

/** Shift stack #K of YYSTACK, to a new state corresponding to LR
 *  state YYLRSTATE, at input position YYPOSN, with the (unresolved)
 *  semantic value of YYRHS under the action for YYRULE.  */
static inline void
yyglrShiftDefer (yyGLRStack* yystackp, size_t yyk, yyStateNum yylrState,
		 size_t yyposn, yyGLRState* rhs, yyRuleNum yyrule)
{
  yyGLRState* yynewState = &yynewGLRStackItem (yystackp, yytrue)->yystate;

  yynewState->yylrState = yylrState;
  yynewState->yyposn = yyposn;
  yynewState->yyresolved = yyfalse;
  yynewState->yypred = yystackp->yytops.yystates[yyk];
  yynewState->yysemantics.yyfirstVal = NULL;
  yystackp->yytops.yystates[yyk] = yynewState;

  /* Invokes YY_RESERVE_GLRSTACK.  */
  yyaddDeferredAction (yystackp, yyk, yynewState, rhs, yyrule);
}

/** Pop the symbols consumed by reduction #RULE from the top of stack
 *  #K of STACK, and perform the appropriate semantic action on their
 *  semantic values.  Assumes that all ambiguities in semantic values
 *  have been previously resolved.  Set *VALP to the resulting value,
 *  and *LOCP to the computed location (if any).  Return value is as
 *  for userAction.  */
static inline YYRESULTTAG
yydoAction (yyGLRStack* yystackp, size_t yyk, yyRuleNum yyrule,
	    YYSTYPE* yyvalp, YYLTYPE* yylocp)
{
  int yynrhs = yyrhsLength (yyrule);

  if (yystackp->yysplitPoint == NULL)
    {
      /* Standard special case: single stack.  */
      yyGLRStackItem* rhs = (yyGLRStackItem*) yystackp->yytops.yystates[yyk];
      YYASSERT (yyk == 0);
      yystackp->yynextFree -= yynrhs;
      yystackp->yyspaceLeft += yynrhs;
      yystackp->yytops.yystates[0] = & yystackp->yynextFree[-1].yystate;
      return yyuserAction (yyrule, yynrhs, rhs,
			   yyvalp, yylocp, yystackp);
    }
  else
    {
      /* At present, doAction is never called in nondeterministic
       * mode, so this branch is never taken.  It is here in
       * anticipation of a future feature that will allow immediate
       * evaluation of selected actions in nondeterministic mode.  */
      int yyi;
      yyGLRState* yys;
      yyGLRStackItem yyrhsVals[YYMAXRHS + YYMAXLEFT + 1];
      yys = yyrhsVals[YYMAXRHS + YYMAXLEFT].yystate.yypred
	= yystackp->yytops.yystates[yyk];
      if (yynrhs == 0)
	/* Set default location.  */
	yyrhsVals[YYMAXRHS + YYMAXLEFT - 1].yystate.yyloc = yys->yyloc;
      for (yyi = 0; yyi < yynrhs; yyi += 1)
	{
	  yys = yys->yypred;
	  YYASSERT (yys);
	}
      yyupdateSplit (yystackp, yys);
      yystackp->yytops.yystates[yyk] = yys;
      return yyuserAction (yyrule, yynrhs, yyrhsVals + YYMAXRHS + YYMAXLEFT - 1,
			   yyvalp, yylocp, yystackp);
    }
}

#if !YYDEBUG
# define YY_REDUCE_PRINT(Args)
#else
# define YY_REDUCE_PRINT(Args)		\
do {					\
  if (yydebug)				\
    yy_reduce_print Args;		\
} while (YYID (0))

/*----------------------------------------------------------.
| Report that the RULE is going to be reduced on stack #K.  |
`----------------------------------------------------------*/

/*ARGSUSED*/ static inline void
yy_reduce_print (yyGLRStack* yystackp, size_t yyk, yyRuleNum yyrule,
		 YYSTYPE* yyvalp, YYLTYPE* yylocp)
{
  int yynrhs = yyrhsLength (yyrule);
  yybool yynormal __attribute__ ((__unused__)) =
    (yystackp->yysplitPoint == NULL);
  yyGLRStackItem* yyvsp = (yyGLRStackItem*) yystackp->yytops.yystates[yyk];
  int yylow = 1;
  int yyi;
  YYUSE (yyvalp);
  YYUSE (yylocp);
  YYFPRINTF (stderr, "Reducing stack %lu by rule %d (line %lu):\n",
	     (unsigned long int) yyk, yyrule - 1,
	     (unsigned long int) yyrline[yyrule]);
  /* The symbols being reduced.  */
  for (yyi = 0; yyi < yynrhs; yyi++)
    {
      YYFPRINTF (stderr, "   $%d = ", yyi + 1);
      yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
		       &(((yyGLRStackItem const *)yyvsp)[YYFILL ((yyi + 1) - (yynrhs))].yystate.yysemantics.yysval)
		       , &(((yyGLRStackItem const *)yyvsp)[YYFILL ((yyi + 1) - (yynrhs))].yystate.yyloc)		       );
      YYFPRINTF (stderr, "\n");
    }
}
#endif

/** Pop items off stack #K of STACK according to grammar rule RULE,
 *  and push back on the resulting nonterminal symbol.  Perform the
 *  semantic action associated with RULE and store its value with the
 *  newly pushed state, if FORCEEVAL or if STACK is currently
 *  unambiguous.  Otherwise, store the deferred semantic action with
 *  the new state.  If the new state would have an identical input
 *  position, LR state, and predecessor to an existing state on the stack,
 *  it is identified with that existing state, eliminating stack #K from
 *  the STACK.  In this case, the (necessarily deferred) semantic value is
 *  added to the options for the existing state's semantic value.
 */
static inline YYRESULTTAG
yyglrReduce (yyGLRStack* yystackp, size_t yyk, yyRuleNum yyrule,
	     yybool yyforceEval)
{
  size_t yyposn = yystackp->yytops.yystates[yyk]->yyposn;

  if (yyforceEval || yystackp->yysplitPoint == NULL)
    {
      YYSTYPE yysval;
      YYLTYPE yyloc;

      YY_REDUCE_PRINT ((yystackp, yyk, yyrule, &yysval, &yyloc));
      YYCHK (yydoAction (yystackp, yyk, yyrule, &yysval,
			 &yyloc));
      YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyrule], &yysval, &yyloc);
      yyglrShift (yystackp, yyk,
		  yyLRgotoState (yystackp->yytops.yystates[yyk]->yylrState,
				 yylhsNonterm (yyrule)),
		  yyposn, &yysval, &yyloc);
    }
  else
    {
      size_t yyi;
      int yyn;
      yyGLRState* yys, *yys0 = yystackp->yytops.yystates[yyk];
      yyStateNum yynewLRState;

      for (yys = yystackp->yytops.yystates[yyk], yyn = yyrhsLength (yyrule);
	   0 < yyn; yyn -= 1)
	{
	  yys = yys->yypred;
	  YYASSERT (yys);
	}
      yyupdateSplit (yystackp, yys);
      yynewLRState = yyLRgotoState (yys->yylrState, yylhsNonterm (yyrule));
      YYDPRINTF ((stderr,
		  "Reduced stack %lu by rule #%d; action deferred.  Now in state %d.\n",
		  (unsigned long int) yyk, yyrule - 1, yynewLRState));
      for (yyi = 0; yyi < yystackp->yytops.yysize; yyi += 1)
	if (yyi != yyk && yystackp->yytops.yystates[yyi] != NULL)
	  {
	    yyGLRState* yyp, *yysplit = yystackp->yysplitPoint;
	    yyp = yystackp->yytops.yystates[yyi];
	    while (yyp != yys && yyp != yysplit && yyp->yyposn >= yyposn)
	      {
		if (yyp->yylrState == yynewLRState && yyp->yypred == yys)
		  {
		    yyaddDeferredAction (yystackp, yyk, yyp, yys0, yyrule);
		    yymarkStackDeleted (yystackp, yyk);
		    YYDPRINTF ((stderr, "Merging stack %lu into stack %lu.\n",
				(unsigned long int) yyk,
				(unsigned long int) yyi));
		    return yyok;
		  }
		yyp = yyp->yypred;
	      }
	  }
      yystackp->yytops.yystates[yyk] = yys;
      yyglrShiftDefer (yystackp, yyk, yynewLRState, yyposn, yys0, yyrule);
    }
  return yyok;
}

static size_t
yysplitStack (yyGLRStack* yystackp, size_t yyk)
{
  if (yystackp->yysplitPoint == NULL)
    {
      YYASSERT (yyk == 0);
      yystackp->yysplitPoint = yystackp->yytops.yystates[yyk];
    }
  if (yystackp->yytops.yysize >= yystackp->yytops.yycapacity)
    {
      yyGLRState** yynewStates;
      yybool* yynewLookaheadNeeds;

      yynewStates = NULL;

      if (yystackp->yytops.yycapacity
	  > (YYSIZEMAX / (2 * sizeof yynewStates[0])))
	yyMemoryExhausted (yystackp);
      yystackp->yytops.yycapacity *= 2;

      yynewStates =
	(yyGLRState**) YYREALLOC (yystackp->yytops.yystates,
				  (yystackp->yytops.yycapacity
				   * sizeof yynewStates[0]));
      if (yynewStates == NULL)
	yyMemoryExhausted (yystackp);
      yystackp->yytops.yystates = yynewStates;

      yynewLookaheadNeeds =
	(yybool*) YYREALLOC (yystackp->yytops.yylookaheadNeeds,
			     (yystackp->yytops.yycapacity
			      * sizeof yynewLookaheadNeeds[0]));
      if (yynewLookaheadNeeds == NULL)
	yyMemoryExhausted (yystackp);
      yystackp->yytops.yylookaheadNeeds = yynewLookaheadNeeds;
    }
  yystackp->yytops.yystates[yystackp->yytops.yysize]
    = yystackp->yytops.yystates[yyk];
  yystackp->yytops.yylookaheadNeeds[yystackp->yytops.yysize]
    = yystackp->yytops.yylookaheadNeeds[yyk];
  yystackp->yytops.yysize += 1;
  return yystackp->yytops.yysize-1;
}

/** True iff Y0 and Y1 represent identical options at the top level.
 *  That is, they represent the same rule applied to RHS symbols
 *  that produce the same terminal symbols.  */
static yybool
yyidenticalOptions (yySemanticOption* yyy0, yySemanticOption* yyy1)
{
  if (yyy0->yyrule == yyy1->yyrule)
    {
      yyGLRState *yys0, *yys1;
      int yyn;
      for (yys0 = yyy0->yystate, yys1 = yyy1->yystate,
	   yyn = yyrhsLength (yyy0->yyrule);
	   yyn > 0;
	   yys0 = yys0->yypred, yys1 = yys1->yypred, yyn -= 1)
	if (yys0->yyposn != yys1->yyposn)
	  return yyfalse;
      return yytrue;
    }
  else
    return yyfalse;
}

/** Assuming identicalOptions (Y0,Y1), destructively merge the
 *  alternative semantic values for the RHS-symbols of Y1 and Y0.  */
static void
yymergeOptionSets (yySemanticOption* yyy0, yySemanticOption* yyy1)
{
  yyGLRState *yys0, *yys1;
  int yyn;
  for (yys0 = yyy0->yystate, yys1 = yyy1->yystate,
       yyn = yyrhsLength (yyy0->yyrule);
       yyn > 0;
       yys0 = yys0->yypred, yys1 = yys1->yypred, yyn -= 1)
    {
      if (yys0 == yys1)
	break;
      else if (yys0->yyresolved)
	{
	  yys1->yyresolved = yytrue;
	  yys1->yysemantics.yysval = yys0->yysemantics.yysval;
	}
      else if (yys1->yyresolved)
	{
	  yys0->yyresolved = yytrue;
	  yys0->yysemantics.yysval = yys1->yysemantics.yysval;
	}
      else
	{
	  yySemanticOption** yyz0p;
	  yySemanticOption* yyz1;
	  yyz0p = &yys0->yysemantics.yyfirstVal;
	  yyz1 = yys1->yysemantics.yyfirstVal;
	  while (YYID (yytrue))
	    {
	      if (yyz1 == *yyz0p || yyz1 == NULL)
		break;
	      else if (*yyz0p == NULL)
		{
		  *yyz0p = yyz1;
		  break;
		}
	      else if (*yyz0p < yyz1)
		{
		  yySemanticOption* yyz = *yyz0p;
		  *yyz0p = yyz1;
		  yyz1 = yyz1->yynext;
		  (*yyz0p)->yynext = yyz;
		}
	      yyz0p = &(*yyz0p)->yynext;
	    }
	  yys1->yysemantics.yyfirstVal = yys0->yysemantics.yyfirstVal;
	}
    }
}

/** Y0 and Y1 represent two possible actions to take in a given
 *  parsing state; return 0 if no combination is possible,
 *  1 if user-mergeable, 2 if Y0 is preferred, 3 if Y1 is preferred.  */
static int
yypreference (yySemanticOption* y0, yySemanticOption* y1)
{
  yyRuleNum r0 = y0->yyrule, r1 = y1->yyrule;
  int p0 = yydprec[r0], p1 = yydprec[r1];

  if (p0 == p1)
    {
      if (yymerger[r0] == 0 || yymerger[r0] != yymerger[r1])
	return 0;
      else
	return 1;
    }
  if (p0 == 0 || p1 == 0)
    return 0;
  if (p0 < p1)
    return 3;
  if (p1 < p0)
    return 2;
  return 0;
}

static YYRESULTTAG yyresolveValue (yyGLRState* yys,
				   yyGLRStack* yystackp);


/** Resolve the previous N states starting at and including state S.  If result
 *  != yyok, some states may have been left unresolved possibly with empty
 *  semantic option chains.  Regardless of whether result = yyok, each state
 *  has been left with consistent data so that yydestroyGLRState can be invoked
 *  if necessary.  */
static YYRESULTTAG
yyresolveStates (yyGLRState* yys, int yyn,
		 yyGLRStack* yystackp)
{
  if (0 < yyn)
    {
      YYASSERT (yys->yypred);
      YYCHK (yyresolveStates (yys->yypred, yyn-1, yystackp));
      if (! yys->yyresolved)
	YYCHK (yyresolveValue (yys, yystackp));
    }
  return yyok;
}

/** Resolve the states for the RHS of OPT, perform its user action, and return
 *  the semantic value and location.  Regardless of whether result = yyok, all
 *  RHS states have been destroyed (assuming the user action destroys all RHS
 *  semantic values if invoked).  */
static YYRESULTTAG
yyresolveAction (yySemanticOption* yyopt, yyGLRStack* yystackp,
		 YYSTYPE* yyvalp, YYLTYPE* yylocp)
{
  yyGLRStackItem yyrhsVals[YYMAXRHS + YYMAXLEFT + 1];
  int yynrhs;
  int yychar_current;
  YYSTYPE yylval_current;
  YYLTYPE yylloc_current;
  YYRESULTTAG yyflag;

  yynrhs = yyrhsLength (yyopt->yyrule);
  yyflag = yyresolveStates (yyopt->yystate, yynrhs, yystackp);
  if (yyflag != yyok)
    {
      yyGLRState *yys;
      for (yys = yyopt->yystate; yynrhs > 0; yys = yys->yypred, yynrhs -= 1)
	yydestroyGLRState ("Cleanup: popping", yys);
      return yyflag;
    }

  yyrhsVals[YYMAXRHS + YYMAXLEFT].yystate.yypred = yyopt->yystate;
  if (yynrhs == 0)
    /* Set default location.  */
    yyrhsVals[YYMAXRHS + YYMAXLEFT - 1].yystate.yyloc = yyopt->yystate->yyloc;
  yychar_current = yychar;
  yylval_current = yylval;
  yylloc_current = yylloc;
  yychar = yyopt->yyrawchar;
  yylval = yyopt->yyval;
  yylloc = yyopt->yyloc;
  yyflag = yyuserAction (yyopt->yyrule, yynrhs,
			   yyrhsVals + YYMAXRHS + YYMAXLEFT - 1,
			   yyvalp, yylocp, yystackp);
  yychar = yychar_current;
  yylval = yylval_current;
  yylloc = yylloc_current;
  return yyflag;
}

#if YYDEBUG
static void
yyreportTree (yySemanticOption* yyx, int yyindent)
{
  int yynrhs = yyrhsLength (yyx->yyrule);
  int yyi;
  yyGLRState* yys;
  yyGLRState* yystates[1 + YYMAXRHS];
  yyGLRState yyleftmost_state;

  for (yyi = yynrhs, yys = yyx->yystate; 0 < yyi; yyi -= 1, yys = yys->yypred)
    yystates[yyi] = yys;
  if (yys == NULL)
    {
      yyleftmost_state.yyposn = 0;
      yystates[0] = &yyleftmost_state;
    }
  else
    yystates[0] = yys;

  if (yyx->yystate->yyposn < yys->yyposn + 1)
    YYFPRINTF (stderr, "%*s%s -> <Rule %d, empty>\n",
	       yyindent, "", yytokenName (yylhsNonterm (yyx->yyrule)),
	       yyx->yyrule - 1);
  else
    YYFPRINTF (stderr, "%*s%s -> <Rule %d, tokens %lu .. %lu>\n",
	       yyindent, "", yytokenName (yylhsNonterm (yyx->yyrule)),
	       yyx->yyrule - 1, (unsigned long int) (yys->yyposn + 1),
	       (unsigned long int) yyx->yystate->yyposn);
  for (yyi = 1; yyi <= yynrhs; yyi += 1)
    {
      if (yystates[yyi]->yyresolved)
	{
	  if (yystates[yyi-1]->yyposn+1 > yystates[yyi]->yyposn)
	    YYFPRINTF (stderr, "%*s%s <empty>\n", yyindent+2, "",
		       yytokenName (yyrhs[yyprhs[yyx->yyrule]+yyi-1]));
	  else
	    YYFPRINTF (stderr, "%*s%s <tokens %lu .. %lu>\n", yyindent+2, "",
		       yytokenName (yyrhs[yyprhs[yyx->yyrule]+yyi-1]),
		       (unsigned long int) (yystates[yyi - 1]->yyposn + 1),
		       (unsigned long int) yystates[yyi]->yyposn);
	}
      else
	yyreportTree (yystates[yyi]->yysemantics.yyfirstVal, yyindent+2);
    }
}
#endif

/*ARGSUSED*/ static YYRESULTTAG
yyreportAmbiguity (yySemanticOption* yyx0,
		   yySemanticOption* yyx1)
{
  YYUSE (yyx0);
  YYUSE (yyx1);

#if YYDEBUG
  YYFPRINTF (stderr, "Ambiguity detected.\n");
  YYFPRINTF (stderr, "Option 1,\n");
  yyreportTree (yyx0, 2);
  YYFPRINTF (stderr, "\nOption 2,\n");
  yyreportTree (yyx1, 2);
  YYFPRINTF (stderr, "\n");
#endif

  yyerror (YY_("syntax is ambiguous"));
  return yyabort;
}

/** Starting at and including state S1, resolve the location for each of the
 *  previous N1 states that is unresolved.  The first semantic option of a state
 *  is always chosen.  */
static void
yyresolveLocations (yyGLRState* yys1, int yyn1,
		    yyGLRStack *yystackp)
{
  if (0 < yyn1)
    {
      yyresolveLocations (yys1->yypred, yyn1 - 1, yystackp);
      if (!yys1->yyresolved)
	{
	  yySemanticOption *yyoption;
	  yyGLRStackItem yyrhsloc[1 + YYMAXRHS];
	  int yynrhs;
	  int yychar_current;
	  YYSTYPE yylval_current;
	  YYLTYPE yylloc_current;
	  yyoption = yys1->yysemantics.yyfirstVal;
	  YYASSERT (yyoption != NULL);
	  yynrhs = yyrhsLength (yyoption->yyrule);
	  if (yynrhs > 0)
	    {
	      yyGLRState *yys;
	      int yyn;
	      yyresolveLocations (yyoption->yystate, yynrhs,
				  yystackp);
	      for (yys = yyoption->yystate, yyn = yynrhs;
		   yyn > 0;
		   yys = yys->yypred, yyn -= 1)
		yyrhsloc[yyn].yystate.yyloc = yys->yyloc;
	    }
	  else
	    {
	      /* Both yyresolveAction and yyresolveLocations traverse the GSS
		 in reverse rightmost order.  It is only necessary to invoke
		 yyresolveLocations on a subforest for which yyresolveAction
		 would have been invoked next had an ambiguity not been
		 detected.  Thus the location of the previous state (but not
		 necessarily the previous state itself) is guaranteed to be
		 resolved already.  */
	      yyGLRState *yyprevious = yyoption->yystate;
	      yyrhsloc[0].yystate.yyloc = yyprevious->yyloc;
	    }
	  yychar_current = yychar;
	  yylval_current = yylval;
	  yylloc_current = yylloc;
	  yychar = yyoption->yyrawchar;
	  yylval = yyoption->yyval;
	  yylloc = yyoption->yyloc;
	  YYLLOC_DEFAULT ((yys1->yyloc), yyrhsloc, yynrhs);
	  yychar = yychar_current;
	  yylval = yylval_current;
	  yylloc = yylloc_current;
	}
    }
}

/** Resolve the ambiguity represented in state S, perform the indicated
 *  actions, and set the semantic value of S.  If result != yyok, the chain of
 *  semantic options in S has been cleared instead or it has been left
 *  unmodified except that redundant options may have been removed.  Regardless
 *  of whether result = yyok, S has been left with consistent data so that
 *  yydestroyGLRState can be invoked if necessary.  */
static YYRESULTTAG
yyresolveValue (yyGLRState* yys, yyGLRStack* yystackp)
{
  yySemanticOption* yyoptionList = yys->yysemantics.yyfirstVal;
  yySemanticOption* yybest;
  yySemanticOption** yypp;
  yybool yymerge;
  YYSTYPE yysval;
  YYRESULTTAG yyflag;
  YYLTYPE *yylocp = &yys->yyloc;

  yybest = yyoptionList;
  yymerge = yyfalse;
  for (yypp = &yyoptionList->yynext; *yypp != NULL; )
    {
      yySemanticOption* yyp = *yypp;

      if (yyidenticalOptions (yybest, yyp))
	{
	  yymergeOptionSets (yybest, yyp);
	  *yypp = yyp->yynext;
	}
      else
	{
	  switch (yypreference (yybest, yyp))
	    {
	    case 0:
	      yyresolveLocations (yys, 1, yystackp);
	      return yyreportAmbiguity (yybest, yyp);
	      break;
	    case 1:
	      yymerge = yytrue;
	      break;
	    case 2:
	      break;
	    case 3:
	      yybest = yyp;
	      yymerge = yyfalse;
	      break;
	    default:
	      /* This cannot happen so it is not worth a YYASSERT (yyfalse),
		 but some compilers complain if the default case is
		 omitted.  */
	      break;
	    }
	  yypp = &yyp->yynext;
	}
    }

  if (yymerge)
    {
      yySemanticOption* yyp;
      int yyprec = yydprec[yybest->yyrule];
      yyflag = yyresolveAction (yybest, yystackp, &yysval,
				yylocp);
      if (yyflag == yyok)
	for (yyp = yybest->yynext; yyp != NULL; yyp = yyp->yynext)
	  {
	    if (yyprec == yydprec[yyp->yyrule])
	      {
		YYSTYPE yysval_other;
		YYLTYPE yydummy;
		yyflag = yyresolveAction (yyp, yystackp, &yysval_other,
					  &yydummy);
		if (yyflag != yyok)
		  {
		    yydestruct ("Cleanup: discarding incompletely merged value for",
				yystos[yys->yylrState],
				&yysval, yylocp);
		    break;
		  }
		yyuserMerge (yymerger[yyp->yyrule], &yysval, &yysval_other);
	      }
	  }
    }
  else
    yyflag = yyresolveAction (yybest, yystackp, &yysval, yylocp);

  if (yyflag == yyok)
    {
      yys->yyresolved = yytrue;
      yys->yysemantics.yysval = yysval;
    }
  else
    yys->yysemantics.yyfirstVal = NULL;
  return yyflag;
}

static YYRESULTTAG
yyresolveStack (yyGLRStack* yystackp)
{
  if (yystackp->yysplitPoint != NULL)
    {
      yyGLRState* yys;
      int yyn;

      for (yyn = 0, yys = yystackp->yytops.yystates[0];
	   yys != yystackp->yysplitPoint;
	   yys = yys->yypred, yyn += 1)
	continue;
      YYCHK (yyresolveStates (yystackp->yytops.yystates[0], yyn, yystackp
			     ));
    }
  return yyok;
}

static void
yycompressStack (yyGLRStack* yystackp)
{
  yyGLRState* yyp, *yyq, *yyr;

  if (yystackp->yytops.yysize != 1 || yystackp->yysplitPoint == NULL)
    return;

  for (yyp = yystackp->yytops.yystates[0], yyq = yyp->yypred, yyr = NULL;
       yyp != yystackp->yysplitPoint;
       yyr = yyp, yyp = yyq, yyq = yyp->yypred)
    yyp->yypred = yyr;

  yystackp->yyspaceLeft += yystackp->yynextFree - yystackp->yyitems;
  yystackp->yynextFree = ((yyGLRStackItem*) yystackp->yysplitPoint) + 1;
  yystackp->yyspaceLeft -= yystackp->yynextFree - yystackp->yyitems;
  yystackp->yysplitPoint = NULL;
  yystackp->yylastDeleted = NULL;

  while (yyr != NULL)
    {
      yystackp->yynextFree->yystate = *yyr;
      yyr = yyr->yypred;
      yystackp->yynextFree->yystate.yypred = &yystackp->yynextFree[-1].yystate;
      yystackp->yytops.yystates[0] = &yystackp->yynextFree->yystate;
      yystackp->yynextFree += 1;
      yystackp->yyspaceLeft -= 1;
    }
}

static YYRESULTTAG
yyprocessOneStack (yyGLRStack* yystackp, size_t yyk,
		   size_t yyposn)
{
  int yyaction;
  const short int* yyconflicts;
  yyRuleNum yyrule;

  while (yystackp->yytops.yystates[yyk] != NULL)
    {
      yyStateNum yystate = yystackp->yytops.yystates[yyk]->yylrState;
      YYDPRINTF ((stderr, "Stack %lu Entering state %d\n",
		  (unsigned long int) yyk, yystate));

      YYASSERT (yystate != YYFINAL);

      if (yyisDefaultedState (yystate))
	{
	  yyrule = yydefaultAction (yystate);
	  if (yyrule == 0)
	    {
	      YYDPRINTF ((stderr, "Stack %lu dies.\n",
			  (unsigned long int) yyk));
	      yymarkStackDeleted (yystackp, yyk);
	      return yyok;
	    }
	  YYCHK (yyglrReduce (yystackp, yyk, yyrule, yyfalse));
	}
      else
	{
	  yySymbol yytoken;
	  yystackp->yytops.yylookaheadNeeds[yyk] = yytrue;
	  if (yychar == YYEMPTY)
	    {
	      YYDPRINTF ((stderr, "Reading a token: "));
	      yychar = YYLEX;
	    }

	  if (yychar <= YYEOF)
	    {
	      yychar = yytoken = YYEOF;
	      YYDPRINTF ((stderr, "Now at end of input.\n"));
	    }
	  else
	    {
	      yytoken = YYTRANSLATE (yychar);
	      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
	    }

	  yygetLRActions (yystate, yytoken, &yyaction, &yyconflicts);

	  while (*yyconflicts != 0)
	    {
	      size_t yynewStack = yysplitStack (yystackp, yyk);
	      YYDPRINTF ((stderr, "Splitting off stack %lu from %lu.\n",
			  (unsigned long int) yynewStack,
			  (unsigned long int) yyk));
	      YYCHK (yyglrReduce (yystackp, yynewStack,
				  *yyconflicts, yyfalse));
	      YYCHK (yyprocessOneStack (yystackp, yynewStack,
					yyposn));
	      yyconflicts += 1;
	    }

	  if (yyisShiftAction (yyaction))
	    break;
	  else if (yyisErrorAction (yyaction))
	    {
	      YYDPRINTF ((stderr, "Stack %lu dies.\n",
			  (unsigned long int) yyk));
	      yymarkStackDeleted (yystackp, yyk);
	      break;
	    }
	  else
	    YYCHK (yyglrReduce (yystackp, yyk, -yyaction,
				yyfalse));
	}
    }
  return yyok;
}

/*ARGSUSED*/ static void
yyreportSyntaxError (yyGLRStack* yystackp)
{
  if (yystackp->yyerrState == 0)
    {
#if YYERROR_VERBOSE
      int yyn;
      yyn = yypact[yystackp->yytops.yystates[0]->yylrState];
      if (YYPACT_NINF < yyn && yyn <= YYLAST)
	{
	  yySymbol yytoken = YYTRANSLATE (yychar);
	  size_t yysize0 = yytnamerr (NULL, yytokenName (yytoken));
	  size_t yysize = yysize0;
	  size_t yysize1;
	  yybool yysize_overflow = yyfalse;
	  char* yymsg = NULL;
	  enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
	  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
	  int yyx;
	  char *yyfmt;
	  char const *yyf;
	  static char const yyunexpected[] = "syntax error, unexpected %s";
	  static char const yyexpecting[] = ", expecting %s";
	  static char const yyor[] = " or %s";
	  char yyformat[sizeof yyunexpected
			+ sizeof yyexpecting - 1
			+ ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
			   * (sizeof yyor - 1))];
	  char const *yyprefix = yyexpecting;

	  /* Start YYX at -YYN if negative to avoid negative indexes in
	     YYCHECK.  */
	  int yyxbegin = yyn < 0 ? -yyn : 0;

	  /* Stay within bounds of both yycheck and yytname.  */
	  int yychecklim = YYLAST - yyn + 1;
	  int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
	  int yycount = 1;

	  yyarg[0] = yytokenName (yytoken);
	  yyfmt = yystpcpy (yyformat, yyunexpected);

	  for (yyx = yyxbegin; yyx < yyxend; ++yyx)
	    if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
	      {
		if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
		  {
		    yycount = 1;
		    yysize = yysize0;
		    yyformat[sizeof yyunexpected - 1] = '\0';
		    break;
		  }
		yyarg[yycount++] = yytokenName (yyx);
		yysize1 = yysize + yytnamerr (NULL, yytokenName (yyx));
		yysize_overflow |= yysize1 < yysize;
		yysize = yysize1;
		yyfmt = yystpcpy (yyfmt, yyprefix);
		yyprefix = yyor;
	      }

	  yyf = YY_(yyformat);
	  yysize1 = yysize + strlen (yyf);
	  yysize_overflow |= yysize1 < yysize;
	  yysize = yysize1;

	  if (!yysize_overflow)
	    yymsg = (char *) YYMALLOC (yysize);

	  if (yymsg)
	    {
	      char *yyp = yymsg;
	      int yyi = 0;
	      while ((*yyp = *yyf))
		{
		  if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
		    {
		      yyp += yytnamerr (yyp, yyarg[yyi++]);
		      yyf += 2;
		    }
		  else
		    {
		      yyp++;
		      yyf++;
		    }
		}
	      yyerror (yymsg);
	      YYFREE (yymsg);
	    }
	  else
	    {
	      yyerror (YY_("syntax error"));
	      yyMemoryExhausted (yystackp);
	    }
	}
      else
#endif /* YYERROR_VERBOSE */
	yyerror (YY_("syntax error"));
      yynerrs += 1;
    }
}

/* Recover from a syntax error on *YYSTACKP, assuming that *YYSTACKP->YYTOKENP,
   yylval, and yylloc are the syntactic category, semantic value, and location
   of the lookahead.  */
/*ARGSUSED*/ static void
yyrecoverSyntaxError (yyGLRStack* yystackp)
{
  size_t yyk;
  int yyj;

  if (yystackp->yyerrState == 3)
    /* We just shifted the error token and (perhaps) took some
       reductions.  Skip tokens until we can proceed.  */
    while (YYID (yytrue))
      {
	yySymbol yytoken;
	if (yychar == YYEOF)
	  yyFail (yystackp, NULL);
	if (yychar != YYEMPTY)
	  {
	    /* We throw away the lookahead, but the error range
	       of the shifted error token must take it into account.  */
	    yyGLRState *yys = yystackp->yytops.yystates[0];
	    yyGLRStackItem yyerror_range[3];
	    yyerror_range[1].yystate.yyloc = yys->yyloc;
	    yyerror_range[2].yystate.yyloc = yylloc;
	    YYLLOC_DEFAULT ((yys->yyloc), yyerror_range, 2);
	    yytoken = YYTRANSLATE (yychar);
	    yydestruct ("Error: discarding",
			yytoken, &yylval, &yylloc);
	  }
	YYDPRINTF ((stderr, "Reading a token: "));
	yychar = YYLEX;
	if (yychar <= YYEOF)
	  {
	    yychar = yytoken = YYEOF;
	    YYDPRINTF ((stderr, "Now at end of input.\n"));
	  }
	else
	  {
	    yytoken = YYTRANSLATE (yychar);
	    YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
	  }
	yyj = yypact[yystackp->yytops.yystates[0]->yylrState];
	if (yyis_pact_ninf (yyj))
	  return;
	yyj += yytoken;
	if (yyj < 0 || YYLAST < yyj || yycheck[yyj] != yytoken)
	  {
	    if (yydefact[yystackp->yytops.yystates[0]->yylrState] != 0)
	      return;
	  }
	else if (yytable[yyj] != 0 && ! yyis_table_ninf (yytable[yyj]))
	  return;
      }

  /* Reduce to one stack.  */
  for (yyk = 0; yyk < yystackp->yytops.yysize; yyk += 1)
    if (yystackp->yytops.yystates[yyk] != NULL)
      break;
  if (yyk >= yystackp->yytops.yysize)
    yyFail (yystackp, NULL);
  for (yyk += 1; yyk < yystackp->yytops.yysize; yyk += 1)
    yymarkStackDeleted (yystackp, yyk);
  yyremoveDeletes (yystackp);
  yycompressStack (yystackp);

  /* Now pop stack until we find a state that shifts the error token.  */
  yystackp->yyerrState = 3;
  while (yystackp->yytops.yystates[0] != NULL)
    {
      yyGLRState *yys = yystackp->yytops.yystates[0];
      yyj = yypact[yys->yylrState];
      if (! yyis_pact_ninf (yyj))
	{
	  yyj += YYTERROR;
	  if (0 <= yyj && yyj <= YYLAST && yycheck[yyj] == YYTERROR
	      && yyisShiftAction (yytable[yyj]))
	    {
	      /* Shift the error token having adjusted its location.  */
	      YYLTYPE yyerrloc;
	      yystackp->yyerror_range[2].yystate.yyloc = yylloc;
	      YYLLOC_DEFAULT (yyerrloc, (yystackp->yyerror_range), 2);
	      YY_SYMBOL_PRINT ("Shifting", yystos[yytable[yyj]],
			       &yylval, &yyerrloc);
	      yyglrShift (yystackp, 0, yytable[yyj],
			  yys->yyposn, &yylval, &yyerrloc);
	      yys = yystackp->yytops.yystates[0];
	      break;
	    }
	}
      yystackp->yyerror_range[1].yystate.yyloc = yys->yyloc;
      if (yys->yypred != NULL)
	yydestroyGLRState ("Error: popping", yys);
      yystackp->yytops.yystates[0] = yys->yypred;
      yystackp->yynextFree -= 1;
      yystackp->yyspaceLeft += 1;
    }
  if (yystackp->yytops.yystates[0] == NULL)
    yyFail (yystackp, NULL);
}

#define YYCHK1(YYE)							     \
  do {									     \
    switch (YYE) {							     \
    case yyok:								     \
      break;								     \
    case yyabort:							     \
      goto yyabortlab;							     \
    case yyaccept:							     \
      goto yyacceptlab;							     \
    case yyerr:								     \
      goto yyuser_error;						     \
    default:								     \
      goto yybuglab;							     \
    }									     \
  } while (YYID (0))


/*----------.
| yyparse.  |
`----------*/

int
yyparse (void)
{
  int yyresult;
  yyGLRStack yystack;
  yyGLRStack* const yystackp = &yystack;
  size_t yyposn;

  YYDPRINTF ((stderr, "Starting parse\n"));

  yychar = YYEMPTY;
  yylval = yyval_default;

#if YYLTYPE_IS_TRIVIAL
  yylloc.first_line   = yylloc.last_line   = 1;
  yylloc.first_column = yylloc.last_column = 1;
#endif


  if (! yyinitGLRStack (yystackp, YYINITDEPTH))
    goto yyexhaustedlab;
  switch (YYSETJMP (yystack.yyexception_buffer))
    {
    case 0: break;
    case 1: goto yyabortlab;
    case 2: goto yyexhaustedlab;
    default: goto yybuglab;
    }
  yyglrShift (&yystack, 0, 0, 0, &yylval, &yylloc);
  yyposn = 0;

  while (YYID (yytrue))
    {
      /* For efficiency, we have two loops, the first of which is
	 specialized to deterministic operation (single stack, no
	 potential ambiguity).  */
      /* Standard mode */
      while (YYID (yytrue))
	{
	  yyRuleNum yyrule;
	  int yyaction;
	  const short int* yyconflicts;

	  yyStateNum yystate = yystack.yytops.yystates[0]->yylrState;
	  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
	  if (yystate == YYFINAL)
	    goto yyacceptlab;
	  if (yyisDefaultedState (yystate))
	    {
	      yyrule = yydefaultAction (yystate);
	      if (yyrule == 0)
		{
		  yystack.yyerror_range[1].yystate.yyloc = yylloc;
		  yyreportSyntaxError (&yystack);
		  goto yyuser_error;
		}
	      YYCHK1 (yyglrReduce (&yystack, 0, yyrule, yytrue));
	    }
	  else
	    {
	      yySymbol yytoken;
	      if (yychar == YYEMPTY)
		{
		  YYDPRINTF ((stderr, "Reading a token: "));
		  yychar = YYLEX;
		}

	      if (yychar <= YYEOF)
		{
		  yychar = yytoken = YYEOF;
		  YYDPRINTF ((stderr, "Now at end of input.\n"));
		}
	      else
		{
		  yytoken = YYTRANSLATE (yychar);
		  YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
		}

	      yygetLRActions (yystate, yytoken, &yyaction, &yyconflicts);
	      if (*yyconflicts != 0)
		break;
	      if (yyisShiftAction (yyaction))
		{
		  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
		  yychar = YYEMPTY;
		  yyposn += 1;
		  yyglrShift (&yystack, 0, yyaction, yyposn, &yylval, &yylloc);
		  if (0 < yystack.yyerrState)
		    yystack.yyerrState -= 1;
		}
	      else if (yyisErrorAction (yyaction))
		{
		  yystack.yyerror_range[1].yystate.yyloc = yylloc;
		  yyreportSyntaxError (&yystack);
		  goto yyuser_error;
		}
	      else
		YYCHK1 (yyglrReduce (&yystack, 0, -yyaction, yytrue));
	    }
	}

      while (YYID (yytrue))
	{
	  yySymbol yytoken_to_shift;
	  size_t yys;

	  for (yys = 0; yys < yystack.yytops.yysize; yys += 1)
	    yystackp->yytops.yylookaheadNeeds[yys] = yychar != YYEMPTY;

	  /* yyprocessOneStack returns one of three things:

	      - An error flag.  If the caller is yyprocessOneStack, it
		immediately returns as well.  When the caller is finally
		yyparse, it jumps to an error label via YYCHK1.

	      - yyok, but yyprocessOneStack has invoked yymarkStackDeleted
		(&yystack, yys), which sets the top state of yys to NULL.  Thus,
		yyparse's following invocation of yyremoveDeletes will remove
		the stack.

	      - yyok, when ready to shift a token.

	     Except in the first case, yyparse will invoke yyremoveDeletes and
	     then shift the next token onto all remaining stacks.  This
	     synchronization of the shift (that is, after all preceding
	     reductions on all stacks) helps prevent double destructor calls
	     on yylval in the event of memory exhaustion.  */

	  for (yys = 0; yys < yystack.yytops.yysize; yys += 1)
	    YYCHK1 (yyprocessOneStack (&yystack, yys, yyposn));
	  yyremoveDeletes (&yystack);
	  if (yystack.yytops.yysize == 0)
	    {
	      yyundeleteLastStack (&yystack);
	      if (yystack.yytops.yysize == 0)
		yyFail (&yystack, YY_("syntax error"));
	      YYCHK1 (yyresolveStack (&yystack));
	      YYDPRINTF ((stderr, "Returning to deterministic operation.\n"));
	      yystack.yyerror_range[1].yystate.yyloc = yylloc;
	      yyreportSyntaxError (&yystack);
	      goto yyuser_error;
	    }

	  /* If any yyglrShift call fails, it will fail after shifting.  Thus,
	     a copy of yylval will already be on stack 0 in the event of a
	     failure in the following loop.  Thus, yychar is set to YYEMPTY
	     before the loop to make sure the user destructor for yylval isn't
	     called twice.  */
	  yytoken_to_shift = YYTRANSLATE (yychar);
	  yychar = YYEMPTY;
	  yyposn += 1;
	  for (yys = 0; yys < yystack.yytops.yysize; yys += 1)
	    {
	      int yyaction;
	      const short int* yyconflicts;
	      yyStateNum yystate = yystack.yytops.yystates[yys]->yylrState;
	      yygetLRActions (yystate, yytoken_to_shift, &yyaction,
			      &yyconflicts);
	      /* Note that yyconflicts were handled by yyprocessOneStack.  */
	      YYDPRINTF ((stderr, "On stack %lu, ", (unsigned long int) yys));
	      YY_SYMBOL_PRINT ("shifting", yytoken_to_shift, &yylval, &yylloc);
	      yyglrShift (&yystack, yys, yyaction, yyposn,
			  &yylval, &yylloc);
	      YYDPRINTF ((stderr, "Stack %lu now in state #%d\n",
			  (unsigned long int) yys,
			  yystack.yytops.yystates[yys]->yylrState));
	    }

	  if (yystack.yytops.yysize == 1)
	    {
	      YYCHK1 (yyresolveStack (&yystack));
	      YYDPRINTF ((stderr, "Returning to deterministic operation.\n"));
	      yycompressStack (&yystack);
	      break;
	    }
	}
      continue;
    yyuser_error:
      yyrecoverSyntaxError (&yystack);
      yyposn = yystack.yytops.yystates[0]->yyposn;
    }

 yyacceptlab:
  yyresult = 0;
  goto yyreturn;

 yybuglab:
  YYASSERT (yyfalse);
  goto yyabortlab;

 yyabortlab:
  yyresult = 1;
  goto yyreturn;

 yyexhaustedlab:
  yyerror (YY_("memory exhausted"));
  yyresult = 2;
  goto yyreturn;

 yyreturn:
  if (yychar != YYEMPTY)
    yydestruct ("Cleanup: discarding lookahead",
		YYTRANSLATE (yychar),
		&yylval, &yylloc);

  /* If the stack is well-formed, pop the stack until it is empty,
     destroying its entries as we go.  But free the stack regardless
     of whether it is well-formed.  */
  if (yystack.yyitems)
    {
      yyGLRState** yystates = yystack.yytops.yystates;
      if (yystates)
	{
	  size_t yysize = yystack.yytops.yysize;
	  size_t yyk;
	  for (yyk = 0; yyk < yysize; yyk += 1)
	    if (yystates[yyk])
	      {
		while (yystates[yyk])
		  {
		    yyGLRState *yys = yystates[yyk];
		    yystack.yyerror_range[1].yystate.yyloc = yys->yyloc;
		    if (yys->yypred != NULL)
		      yydestroyGLRState ("Cleanup: popping", yys);
		    yystates[yyk] = yys->yypred;
		    yystack.yynextFree -= 1;
		    yystack.yyspaceLeft += 1;
		  }
		break;
	      }
	}
      yyfreeGLRStack (&yystack);
    }

  /* Make sure YYID is used.  */
  return YYID (yyresult);
}

/* DEBUGGING ONLY */
#if YYDEBUG
static void yypstack (yyGLRStack* yystackp, size_t yyk)
  __attribute__ ((__unused__));
static void yypdumpstack (yyGLRStack* yystackp) __attribute__ ((__unused__));

static void
yy_yypstack (yyGLRState* yys)
{
  if (yys->yypred)
    {
      yy_yypstack (yys->yypred);
      YYFPRINTF (stderr, " -> ");
    }
  YYFPRINTF (stderr, "%d@%lu", yys->yylrState,
             (unsigned long int) yys->yyposn);
}

static void
yypstates (yyGLRState* yyst)
{
  if (yyst == NULL)
    YYFPRINTF (stderr, "<null>");
  else
    yy_yypstack (yyst);
  YYFPRINTF (stderr, "\n");
}

static void
yypstack (yyGLRStack* yystackp, size_t yyk)
{
  yypstates (yystackp->yytops.yystates[yyk]);
}

#define YYINDEX(YYX)							     \
    ((YYX) == NULL ? -1 : (yyGLRStackItem*) (YYX) - yystackp->yyitems)


static void
yypdumpstack (yyGLRStack* yystackp)
{
  yyGLRStackItem* yyp;
  size_t yyi;
  for (yyp = yystackp->yyitems; yyp < yystackp->yynextFree; yyp += 1)
    {
      YYFPRINTF (stderr, "%3lu. ",
                 (unsigned long int) (yyp - yystackp->yyitems));
      if (*(yybool *) yyp)
	{
	  YYFPRINTF (stderr, "Res: %d, LR State: %d, posn: %lu, pred: %ld",
		     yyp->yystate.yyresolved, yyp->yystate.yylrState,
		     (unsigned long int) yyp->yystate.yyposn,
		     (long int) YYINDEX (yyp->yystate.yypred));
	  if (! yyp->yystate.yyresolved)
	    YYFPRINTF (stderr, ", firstVal: %ld",
		       (long int) YYINDEX (yyp->yystate
                                             .yysemantics.yyfirstVal));
	}
      else
	{
	  YYFPRINTF (stderr, "Option. rule: %d, state: %ld, next: %ld",
		     yyp->yyoption.yyrule - 1,
		     (long int) YYINDEX (yyp->yyoption.yystate),
		     (long int) YYINDEX (yyp->yyoption.yynext));
	}
      YYFPRINTF (stderr, "\n");
    }
  YYFPRINTF (stderr, "Tops:");
  for (yyi = 0; yyi < yystackp->yytops.yysize; yyi += 1)
    YYFPRINTF (stderr, "%lu: %ld; ", (unsigned long int) yyi,
	       (long int) YYINDEX (yystackp->yytops.yystates[yyi]));
  YYFPRINTF (stderr, "\n");
}
#endif



/* Line 2634 of glr.c  */
#line 3420 "sql.y"



